Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Creating Item from a Person to a Multi Text Field is showing up as "odata.type.."

(0) ShareShare
ReportReport
Posted on by 909 Super User 2024 Season 1

Hi,

 

When I am creating an Item from List A into List B , The output is like "[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser","Claims":"i:0#.f|membership|tag0335@gmail.com","DisplayName":"Stevens, Louis","Email":"Louis.Stevens@gmail.com.com","Picture":"UserPhoto.aspx?Size=L&AccountName=Louis.Stevens@gmail.com.com","Department":"Cool Department","JobTitle":"Cool guy"}]

 

How can I convert this field to not show this?

 

Thanks.

 

  • ThxAlot Profile Picture
    22 on at
    Re: Creating Item from a Person to a Multi Text Field is showing up as "odata.type.."

     

    join(xpath(xml(json(concat('{"root":',coalesce(item()?['PersonsTest'],'""'),'}'))),'/root/DisplayName/text()'),';')

     

  • wonka1234 Profile Picture
    909 Super User 2024 Season 1 on at
    Re: Creating Item from a Person to a Multi Text Field is showing up as "odata.type.."

    @v-yueyun-msft  looks to be working with some fields, but others I am getting error - 

     

    Unable to process template language expressions in action 'Review_Converted' inputs at line '0' and column '0': 'The template language function 'json' parameter is not valid. The provided value '{"root":{"item":}}' cannot be parsed: 'Unexpected character encountered while parsing value: }. Path 'root.item', line 1, position 16.'. Please see https://aka.ms/logicexpressions#json for usage details.'.

     

    Looks to me this error occurs when there is a blank in a row. Otherwise this formula works fine.

  • v-yueyun-msft Profile Picture
    on at
    Re: Creating Item from a Person to a Multi Text Field is showing up as "odata.type.."

    Hi , @wonka1234 

    This is my SharePoint List and the output of the "Get items" action in flow.

    vyueyunmsft_0-1710295286732.png

    For example , if you want to extract the [DisplayName] of this Person, You need to use expression to get:

    vyueyunmsft_1-1710295443204.png

    join(xpath( xml(json(concat('{"root":{"item":',item()?['PersonsTest'],'}}'))) , '/root/item/DisplayName/text()')
    ,';')

     

    join(xpath( xml(json(concat('{"root":{"item":',item()?['Internal Column Name'],'}}'))) , '/root/item/DisplayName/text()')
    ,';')

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492