web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating Item from a P...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 920 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.

 

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    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

     

     

  • wonka1234 Profile Picture
    920 Super User 2024 Season 1 on at

    @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.

  • ThxAlot Profile Picture
    22 on at

     

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

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 450

#2
Haque Profile Picture

Haque 366

#3
Valantis Profile Picture

Valantis 349

Last 30 days Overall leaderboard