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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

ModelDrivenFormintegration not working on embedded canvas app in D365 PowerApp

(1) ShareShare
ReportReport
Posted on by 11
Hi all
I've embedded a canvas app on a modeldriven app and most of the steps appear to have functioned absolutely fine:
1) I used the classic to create and embed on a field that is always populated
2) ModelDrivenFormIntegration appeared as expected in the PowerApps studio
3) I built a gallery that filtered with the following /Filter('MyCustomTale'.Contact.'ID' = [@ModelDrivenFormIntegration].Item.'ID')/. This returned the correct information in the PowerApps Studio.
4) To make absolutely sure I changed the Canvas App title label to also be the ID and it displayed as expected in the PowerApps Studio.
5) I also added another gallery that supplied the table data unfiltered.
5) The App renders in the form but returns no values on the filtered gallery. The unfiltered gallery is fine. 
 
Clearly the App is not receiving the values from ModelDrivenFormIntegration, but I have no idea why. Any ideas?
 
Ralph
 
I have the same question (0)
  • Suggested answer
    Dengliang Li Profile Picture
    Microsoft Employee on at
    Hi,
     
    In my testing, I added a Contact ID field to the Fom1 control.
     
    Filter in the gallery's items to display the contacts that have the same contact ID as the Form1 control ( Only the contact of the current record is displayed).
     
    The final result is shown below.
     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more.
    If you have further questions, please feel free to contact me .
     
    Best Regards,
    Dengliang Li
     
  • Dengliang Li Profile Picture
    Microsoft Employee on at
    Hi,
     
    Has the issue been solved?
    Have there been any updates? Please feel free to ask me if you have any questions!
    If it has been resolved, can you mark the response as an answer?
     
  • RalphyC Profile Picture
    11 on at
    Thanks Dengliang Li - you're approach works but isn't a fix I don't think as there seems to be a mismatch between the ModelDrivenFormIntegration its refresh function. Using some suggestions I found elsewhere, I tried to populate a variable at OnDataRefresh. The variable *didn't* work, but the act of doing it caused the gallery *to work* (essentially the same as sticking a referential contact on the form). I'm guessing it's something I don't quite understand about the way the Gallery relates to the underlying data and the ModelDrivenFormIntegration OnDataRefresh when it opens in the Model Driven App...
     
    Ralph
  • NP-12061233-0 Profile Picture
    2 on at
    Ralph,

    What set in the OnDataRefresh to make this one work? Struggelig with the same issue,

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 47 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
Pallavi Phade Profile Picture

Pallavi Phade 32

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans