Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Suggested answer

ModelDrivenFormIntegration control giving error - not retrieving data in embedded canvas app

(1) ShareShare
ReportReport
Posted on by 4
Hi 
I created a canvas app first, then added to a solution in PowerApps. Got the 
 
ModelDrivenFormIntegration control in the app by using app url and appending &source=ModelDrivenFormIntegration&is-hosted=true.
 
I Could not get it by clicking on the Customize button in the App Properties window in the Main form, or by switching to classic view etc
 
When I added the canvas app to Main form I entered first field (Bind to table Column) as Contact,
Entered the App Name as unique name of App -,
Entered the App Id (GUID) which I got from the App details. 
 
I added this bit in the Datarefresh event of this control
 
Refresh(Contacts);
 
Set(ContactId, First(ModelDrivenFormIntegration.Data).ItemId);
tried to get the contact object
 
Set(Contact, LookUp(Contacts, 'Contact (contactid)'=First([@ModelDrivenFormIntegration].Data).ItemId));
 
I get error on ItemId part - Name isn't valid, ItemId isn't recognized. Incompatible types of comparison etc. 
 
I tried this as well in DataRefresh
 
Set(ContactId, ModelDrivenFormIntegration.Item.'Contact (contactid)'); 
This above one doesn't give error but doesn't show me the value
 
I read many posts and tried the above in App start as well, but it doesn't get the value, 
 
I didn't know of any way of testing this bit in preview. I still published it. 
 
When I refresh the Main form where this app is embedded I don't see the value of Id coming and galleries are not getting populated. 
 
This is the first time I am doing this, so maybe I am doing somethings wrong. 
 
Can you please guide me on how to get the Id of the record this app is embedded in, into the app so it can run all the initial power flows to get the data into the app. 
 
 
 
Thanks a lot 
Nalina
  • NV-12080530-0 Profile Picture
    4 on at
    ModelDrivenFormIntegration control giving error - not retrieving data in embedded canvas app
    Hi All, 
    Thanks for your response. 
    Problem was the way I embedded the app, 
     
    I had follow all the steps necessary to embed and app in the form, 
     
    like dragging the field in classic view etc.
     
    Nalina
  • Suggested answer
    JT-09100908-0 Profile Picture
    on at
    ModelDrivenFormIntegration control giving error - not retrieving data in embedded canvas app
    Hi Naline, I don't kow if you already figured out or moved on, but I found your post when trying to solve this myself.
     
    Instead of using First([@ModelDrivenFormIntegration].Data).ItemId), I was successful with ModelDrivenFormIntegration.Item followed with a period gave me the columns of the record. 
  • Michael E. Gernaey Profile Picture
    44,236 Super User 2025 Season 1 on at
    ModelDrivenFormIntegration control giving error - not retrieving data in embedded canvas app
    Hi
     
    If you just add the . (period) outside the First function you do, does it list any options?
     
    That will tell you what it thinks is there
     
    Also, if you click on Data, does it show it has something in it?

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1