Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Aurora Profile Picture
    364 on at
    Re: How to get a ThisItem for a lookup column in SharePoint

    This worked, thanks!

  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at
    Re: How to get a ThisItem for a lookup column in SharePoint

    @phipps0218 

     

    That must be it.

     

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

  • Verified answer
    MVP-Phipps Profile Picture
    3,447 Super User 2024 Season 1 on at
    Re: How to get a ThisItem for a lookup column in SharePoint

    @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
    Re: How to get a ThisItem for a lookup column in SharePoint

    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?

  • Aurora Profile Picture
    364 on at
    Re: How to get a ThisItem for a lookup column in SharePoint

    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

     

  • MVP-Phipps Profile Picture
    3,447 Super User 2024 Season 1 on at
    Re: How to get a ThisItem for a lookup column in SharePoint

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard