문제

I'm using a Get Items action to fetch a list that includes people as one of the columns. Now I need to get the display name of those people as text to put in another field. I've tried numerous approaches but no matter what angle I come from I can't seem to isolate just the display name. I can get the entire People object, but I can't then break it down and get its properties. Is there an easy way to accomplish this?

도움이 되었습니까?

해결책

Have you tried using Parse JSON action? For input to Parse JSON, use the Person object retrieved by Get Items action, and for Schema, use the below:

{
    "type": "object",
    "properties": {
        "@@odata.type": {
            "type": "string"
        },
        "Claims": {
            "type": "string"
        },
        "DisplayName": {
            "type": "string"
        },
        "Email": {
            "type": "string"
        },
        "Picture": {
            "type": "string"
        },
        "Department": {},
        "JobTitle": {}
    }
}

Once you parse the Person type column, all properties should be available in the dynamic content to use in the subsequent steps.

enter image description here

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top