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 / How to get a ThisItem ...
Power Apps
Answered

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,521 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,521 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

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard