cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
tcorcor11
Level: Powered On

Set Lookup on embedded canvas app used ModelDrivenFormIntegration value

I have a canvas app integrated on a D365 CE form. The app is essentially a form and i would like to populate fields on the form with the context of the record it is embedded in. For example, embedded in an Account and i want to create a child record connected to the Account without having the user select it again.

 

Generally speaking i have had issues using the data from the FormIntegration context. Anyone have any advice/feedback? Thanks in advance!

2 REPLIES 2
Community Support Team
Community Support Team

Re: Set Lookup on embedded canvas app used ModelDrivenFormIntegration value

Hi @tcorcor11 ,

Do you want to pass the current record as a data context to the embedded canvas app?

Here's a doc for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/pass-current-embedded-canvas-app

https://powerapps.microsoft.com/en-us/blog/enrich-your-model-driven-forms-with-embedded-canvas-apps-...

If you meet some problems about it, please show more details about it. Pictures, formulas, etc all help.

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
tcorcor11
Level: Powered On

Re: Set Lookup on embedded canvas app used ModelDrivenFormIntegration value

Hi Phoebe,

 

Thanks, i missed on critical detail in that doc. Initially I was using the below:

[@ModelDrivenFormIntegration].Data.ext_fieldname

 

Instead of:

First([@ModelDrivenFormIntegration].Data).ext_fieldnameid

 

Now, the field ext_fieldname is a lookup and i am trying to set that by default. I can pull the guid and drop it in a text field but passing that into the combobox i am using for the lookup doesnt work. It returns a "value must be a data entity" error. I have also tried just using the below to set the record by default without success:

 

First([@ModelDrivenFormIntegration].Data)

 

Thanks again for your help

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 386 members 4,494 guests
Recent signins:
Please welcome our newest community members: