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 / Lookup function with c...
Power Apps
Answered

Lookup function with condition by ID but datatype is lookup

(0) ShareShare
ReportReport
Posted on by 6

Hello everyone i am new in here,

So i wanna lookup row by id but the field datatype is lookup, how can i achieve that ?

 

LookUp([@'Transaction Approval Histories'], Regarding = "473826292",Subject);
 

irfnnzmi_0-1704338893178.png

As sample of above the "Regarding" field is lookup datatype.

 

Thank you for Answer.

I have the same question (0)
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @irfnnzmi 

    The LookUp column will return record in Power Apps.

    vyueyunmsft_0-1704346442238.png

    So if you want to use lookup for this field , you need to use this code :

     

    LookUp([@'Transaction Approval Histories'], Regarding.Id = 473826292).Subject

     

    And you can also use the :
    Set(dataTest,[@'Transaction Approval Histories'])
    And you can see your table return in the global varabiles:

    vyueyunmsft_1-1704346611702.png

    Then we can see your [Regarding] column return and then determine which field you need lookup in this record type column.

     

    If this reply can help you , you can click mark this reply as solution, thanks in advance!


    Best Regards,

    Yueyun Zhang

     

  • irfnnzmi Profile Picture
    6 on at

    Hi! @v-yueyun-msft 

    Thank you for answer ,

     

    but i still cant assign Regarding.Id or Regarding.Value. as you can see in below

    irfnnzmi_0-1704354543570.png

     

     

    after some debuging. i got the regarding column have this value. 

    irfnnzmi_1-1704354774084.png

     

    and it produce by using this program

    irfnnzmi_2-1704354867380.png

    then how can i access Value property if using Regarding.Value doesn't work ?

     

    Best Regards

     

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    HI , @irfnnzmi 

    According to description, how do you get "regarding column have this value":

    vyueyunmsft_0-1704355359861.png

    Can you show me your Table "[@'Transaction Approval Histories']" in your Power Apps,like this:

    vyueyunmsft_1-1704355425273.png

    And can you show me your Regarding data here :

    vyueyunmsft_2-1704355459387.png

     

    vyueyunmsft_3-1704355498998.png

     

    And dose your Regarding column open the allow multiple selection in your side ?


    Best Regards,

    Yueyun Zhang

     

  • irfnnzmi Profile Picture
    6 on at

    HI @v-yueyun-msft 

     

    Thank you for answer, 

    as your request i only found this colomn "_regardingobjectid_value", 

     

    irfnnzmi_0-1704356667240.png

     

    and when i check it on here its just question mark "?"

    irfnnzmi_3-1704357502814.png

     

     

     

    The name of "Regarding" colomn is found in this menu

    irfnnzmi_2-1704357240151.png

     

    and this is the configuration of regarding colomn

    irfnnzmi_4-1704357600075.png

     

    Best Regards

     

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

    Hi , @irfnnzmi 

    I test it in my side , you can try to use this code :

    LookUp([@'Transaction Approval Histories'], Regarding.Name = "xxxx" ).Subject

     

    This is my Lookup column in Dataverse and test app:

    vyueyunmsft_0-1704358831464.png

     


    Best Regards,

    Yueyun Zhang

     

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

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard