web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ModelDrivenFormIntegra...
Power Apps
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
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,362 Super User 2025 Season 2 on at
    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?
  • Suggested answer
    JT-09100908-0 Profile Picture
    on at
    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. 
  • NV-12080530-0 Profile Picture
    4 on at
    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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard