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 Apps / Include "Assigned To" ...
Power Apps
Answered

Include "Assigned To" as text in Gallery?

(1) ShareShare
ReportReport
Posted on by

I added a connection to a SharePoint Online Task List.  In PowerApps, I have 2 menus "Assigned To Me" and "Initiated By Me" --  How do I include a text label within the gallery to display the "Assigned To" name?   I tried below

 

ThisItem.'Assigned To'

but it give an 'expected text value' error. I added .DisplayName or .Email at the end but it didnt work as well.  I could not find any online resourse on how to accomplish this.  The "Assigned To" column also allows multiple values.

Basically, each gallery item returns the Task Title, Due Date, and Assigned To (for Initiated By Me screen.  And Task Title, Due Date, and Author for the Assigned To Me screen.  For the "Author" i used below:

ThisItem.Author.DisplayName
Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Tamras 

    'Assigned To' in a Task list is a person column.  Therefore your formula ThisItem.'Assigned To'.DisplayName should be giving you results.  Make sure you have not been trying to change the SharePoint list without refreshing the DataSource in PowerApps to test.  If you make changes to the datasource, then you will need to refresh it to reflect the changes.

    If this is not the case for you - then please provide more details on any changes you might have to the Task list and specifically the Assigned To column (i.e. have you changed it to a multiple choices option?)

     

    I hope this is helpful for you.

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Tamras ,

    Do you enable the "Allow multiple selections" option for the "Assigned To" field in your Task List?

     

    If you have enabled the "Allow multiple selections" option for the "Assigned To" field in your Task List, I think there is something wrong with the formula you provided.

    If you enabled the "Allow multiple selections" option for the "Assigned To" field in your Task List, the result the ThisItem.'Assigned To'.DisplayName formula returns is a Table value rather than a Text value.

     

    Based on the issue that you mentioned, I think the Concat function could achieve your needs. I have made a test on my side, please take a try with the following workaround:10.JPG

    Within your Gallery, your should set the Text property of the Label to following:

    Concat(ThisItem.'Assigned To', DisplayName & "; ")

    Or

    Concat(ThisItem.'Assigned To', DisplayName & " & ")

    Please take a try with above formula in your Gallery, check if the issue is solved.

     

    More details about the Concat function, please check the following article:

    Concat function

     

    Best regards,

  • Aethyta Profile Picture
    on at

    I already tried with .DisplayName and it remained blank - I also refreshed the data connection.
    2019-05-31_0845.png

  • Aethyta Profile Picture
    on at

    Thanks @v-xida-msft , your solution worked perfectly!! And yes, I have Allow Multiple Selections enabled

    Concat(ThisItem.'Assigned To', DisplayName & "; ")

    I tried concat before too...but my formula used a dot not a comma between 'Assigned To' and DisplayName

    Concat(ThisItem.'Assigned To'.DisplayName & ";")

     

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Tamras 

    Yup, that's why I was asking about if you had changed to Allow Multiple... 😉

    Glad you got it working.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard