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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to get a ThisItem ...
Power Apps
Unanswered

How to get a ThisItem for a lookup column in SharePoint

(0) ShareShare
ReportReport
Posted on by 364

Hi All, 

 

I am unable to get a user value in a gallery using ThisItem. I have a gallery that displays tasks and the person the task is assigned to, but the person the task is assigned to is in a lookup column on SharePoint. Trying Text(ThisItem.FK_USER.Value) does not work either, and using .Id is also not working for me.

Aurora_0-1657567451070.png

The lookup value comes from a User table also in SharePoint. Does anyone know how to bring this value through? 

 

Aurora_1-1657567623105.png

Categories:
I have the same question (0)
  • MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

    Is it going to only ever be a single user? Is it a person column?

     

    If yes: ThisItem.FK_User.DisplayName

     

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter: https://twitter.com/phipps0218

  • Aurora Profile Picture
    364 on at

    There will only every be 1 user assigned a task in this specific instance. I do not get .DisplayName a choice. 

    Aurora_0-1657568048271.png

     

  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Hi,

     

    I test it on my side and it works fine.

     

    For a Person column type: ThisItem.Person.DisplayName

    For a Lookup to another list (and using title as the Lookup column): ThisItem.'Person Lookup'.Value

     

    But your error shows you are giving a table where text is expected... something may need fixing is that data structure?

  • Verified answer
    MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

    @Aurora @jcfDaniel the reason it is returning a table value is because you have allowed in the data source multiple select so you will need the following:

     

    Concat(ThisItem.FK_USER, Value)

     

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter: https://twitter.com/phipps0218

  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    @phipps0218 

     

    That must be it.

     

    I would just add a separator: Concat( ThisItem.'Lookup Multiple Selection', Value, ", ")

  • Aurora Profile Picture
    364 on at

    This worked, thanks!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard