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 / Unable to update Model...
Power Apps
Answered

Unable to update Model-driven Record from Embedded Canvas App

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have an embedded Canvas App to get Pin Location coordinated from my current location for the selected record in the  Model-driven app. I have written a Patch formula to Update the record in the Model-driven app but the record is not getting updated. I have embedded the Canvas app in the Main Form of Contacts table.

 

OnSelect of Save Button  below is the formula, I am saving the pin location name and coordinates in the Contacts table of CDS

Patch (Contacts, ModelDrivenFormIntegration.Item,
{
'Address 2: Name': DataCardValue5.Text,

'Address 2: Longitude': Map1.ClickedLocation.Longitude,

'Address 2: Latitude': Map1.ClickedLocation.Latitude
});

ModelDrivenFormIntegration.SaveForm()

 

The Model-driven record is not updating with the data from Canvas App.

 

I followed https://www.d365geek.co.uk/single-post/2020/04/16/Update-Model-driven-Record-from-Embedded-Canvas-App 

I have the same question (0)
  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @Anonymous,

    You don't need to use the ModelDrivenFormIntegration.SaveForm(). You can simply save the Edit form (container of the data ards) with the SubmitForm function. E.g SubmitForm(EditFormName)

    You can also RefreshForm is the data is not reflect on the model-driven form afterwards

    Hope this helps!

  • aorro93 Profile Picture
    54 on at

    Did this solution work? For me it's not working. I have an embedded canvas app in a model driven app. When I save a record in the canvas app, a record is send to the table that fetchs the model driven app form, but this record is not shown until the model driven app is refresh. 

  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    @aorro93, interesting, it used to work. I see there were updates since then. Try ModelDrivenFormIntegration.RefreshForm method?

    More info: https://learn.microsoft.com/power-apps/maker/model-driven-apps/embedded-canvas-app-properties-actions?WT.mc_id=DX-MVP-5004271 

  • Bryan-Schmidt Profile Picture
    5 on at
    @EricRegnier and @aorro93 I was having this same problem and did not know about the new method on the ModelDrivenFormIntegration.  I applied the change and it did fix the issue I was having getting the model driven app to update.  Thanks.

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 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard