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 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 (1)
  • Rajkumar_M Profile Picture
    3,747 Moderator 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,747 Moderator 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,747 Moderator 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 482 Most Valuable Professional

#2
11manish Profile Picture

11manish 459

#3
Haque Profile Picture

Haque 331

Last 30 days Overall leaderboard