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 / Display a lookup field...
Power Apps
Answered

Display a lookup field in a gallery

(0) ShareShare
ReportReport
Posted on by 37

I have a canvas app gallery from a table named "Grain_Transfers" that I need to display a lookup field in that table called "Contract_ID". The lookup is tied to a table named "Contracts" and the field in that table is also "Contract_ID". 

 

The goal is to simply  display the saved "Contract_ID" field value listed in the "Grain_Transfers" table.

 

I realize that the gallery doesn't support this directly.

 

I've tried several possible solutions, but am just not getting something right as I can't get this working.

 

Thanks in advance for any assistance.

 

 

 

Categories:
  • TJJones Profile Picture
    37 on at

    I may have just solved this... I used ThisItem.Contract_ID.Contract_ID and it appears to work as desired. I am doing this correctly? I would also like to understand Why it works.

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

    Hi @TJJones ,

     

    I am doing this correctly? Yes.

     

    ThisItem means  the current record in the gallery.

     

    The first Contract_ID is the name of the lookup column . ThisItem.Contract_ID means the corresponding record in the Contracts associated with the current record in the gallery.

     

    The second Contract_ID is the column in Contracts.

     

    Best Regards,

    Bof

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard