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 lookup fiel...
Power Apps
Unanswered

How to get lookup field value on Power App load form ?

(0) ShareShare
ReportReport
Posted on by 20

Hi All,

OnStart property of App, I am getting the Item ID using below code.

If(
!IsBlank(Param("ItemId")),
Set(
varGetItem,
First(
Filter(
'CustomerList',
ID = Value(Param("ItemId"))
)
)
)
)

Using this variable "varGetItem", This is nothing but item ID. I want to get the value of other columns.

 varGetItem.ColumnName (SingleLine) - This is working fine.

But one of the field is lookup filed. From the lookup field I am not able to get the value.

ex:- varGetItem.LookupFieldColumn (Lookup Column)

 

Can you please help me into this.

 

Thanks

 

 

Categories:
I have the same question (0)
  • Rajkumar_M Profile Picture
    3,741 Super User 2025 Season 2 on at

    Hi @SKY05 

     

    You can use the "Value" function to extract the ID of the lookup field, and then use the "Lookup" function to retrieve the corresponding record from the lookup table.

     

    Try this formula,

     

    Lookup('LookupTable', ID = Value(varGetItem.LookupFieldColumn), 'LookupField')

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • SKY05 Profile Picture
    20 on at

    Hi,

    Thanks a lot for your reply.

    Here my main List is called "RequestDetail" and Lookup field is called "CustomerName" which is lookup from 'Customer' list and Get Information From 'Customer' column.

    And Lookup list is called "Customer" and Lookupfield is also same name "Customer".

    Written code - 

    LookUp(Customer, ID = Value(varGetItem.CustomerName),Customer)

    but getting error - 

    SKY05_0-1699610036500.png

     

  • Rajkumar_M Profile Picture
    3,741 Super User 2025 Season 2 on at

    Try this

     

    Lookup(Customer, ID = varGetItem.CustomerName.ID, Customer)
  • SKY05 Profile Picture
    20 on at

    Thanks again for your reply but there is no ID property of CustomerName lookup field.

    varGetItem.CustomerName.ID 
  • Rajkumar_M Profile Picture
    3,741 Super User 2025 Season 2 on at

    Can you try this,

     

    Lookup(Customer, ID = varGetItem.CustomerName, Customer)
  • SKY05 Profile Picture
    20 on at

    Thanks,

    I have tried that as well but there is an error called "Incompitable type of comparision". I am also searching on google to get solution. Thank you so much for your effort.

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard