cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AKB_2K
Level: Powered On

Display Displayname from SharePoint people field in Powerapps gallery

Hello,

 

I have created a SharePoint list where I have a People column named as "PendingWith". I have connected this SharePoint list to my Gallery in PowerApps. For one of the label in the gallery, when I add the following formula 

ThisItem.PendingWith.DisplayName

it showcases an error "Expected text value.PendingWith.Text". How can I fix this?

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Display Displayname from SharePoint people field in Powerapps gallery

The error is normally caused by the SharePoint people/group column being set to allow multiple values and the label in PowerApps which expects a text string doesn't know what to do with it.

 

If the multi select is enabled for the column and that is what you want then you can concat the data into a string and display it in a label.

Example: Concat(ThisItem.PendingWith, DisplayName, "; ")



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Display Displayname from SharePoint people field in Powerapps gallery

The error is normally caused by the SharePoint people/group column being set to allow multiple values and the label in PowerApps which expects a text string doesn't know what to do with it.

 

If the multi select is enabled for the column and that is what you want then you can concat the data into a string and display it in a label.

Example: Concat(ThisItem.PendingWith, DisplayName, "; ")



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

AKB_2K
Level: Powered On

Re: Display Displayname from SharePoint people field in Powerapps gallery

What a neat trick @Jeff_Thorpe ! Thanks for the solution, worked great. Marking as solution.

 

Cheers,

AK

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,960)