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 / Get the Lookup Value i...
Power Apps
Answered

Get the Lookup Value in the Embedded Canvas App

(0) ShareShare
ReportReport
Posted on by 86

Hi All,

 

I have an embedded canvas app on the Model driven crm form. 

I want to get the data of a related entity using LookUp formula and set it into a variable

 

Below are the entities i am using -

Poweruser1101_0-1611633151293.png

 

AgriStocks is the main entity on which the embedded canvas app is created.

Financial Informations is the related entity to Agristock. Financial Informations is a lookup on the AgriStock entity

 

i have tried the below formula in the onvisible property of the FormScreen and tried to display the value in a variable.

But it does not display anything in the label. Label is always blank.

 

Onvisible property of formScreen

Set(FinancialInfoRecord,LookUp('Financial Informations','Financial Information (ice_financialinformationid)'=[@ModelDrivenFormIntegration].Item.'Financial Information'.'Financial Information (ice_financialinformationid)'))

 

Text property of Label

FinancialInfoRecord.Name

 

Any help would be appreciated.

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Poweruser1101 ,

     

    [@ModelDrivenFormIntegration].Item.'Financial Information'.'Financial Information (ice_financialinformationid)' is empty. 

    You could not directly use this formula to obtain data in the 'Financial Information' table.

     

    You ccould try to get the data of the child table from the parent table.

    Please try this way to get the data of the child table:

     

     

    1\ Add a label control 'Label1' and set its Text property to:

    LookUp('Agri Stocks','Agri Stock' = [@ModelDrivenFormIntegration].Item.'Agri Stock').'Financial Information'.'Financial Information (ice_financialinformationid)' 
    
    // 'Agri Stock' is a Unique Identifier column .

     

    2\ Set the Visible property of the label control to:

    false

     

    3\ Add a button control and set its onselect property to:

    Set(FinancialInfoRecord,LookUp('Financial Informations','Financial Information (ice_financialinformationid)'=Label1.Text))

     

    At this time, the value of the variable is the record of the child table.

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

  • Poweruser1101 Profile Picture
    86 on at

    Hey thank you. It works!

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard