Skip to main content

Notifications

Announcements

No record found.

Power Platform integration forum
Suggested answer

ModelDrivenFormintegration not working on embedded canvas app in D365 PowerApp

Posted on by 9
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
 
  • NP-12061233-0 Profile Picture
    NP-12061233-0 2 on at
    ModelDrivenFormintegration not working on embedded canvas app in D365 PowerApp
    Ralph,

    What set in the OnDataRefresh to make this one work? Struggelig with the same issue,
  • RalphyC Profile Picture
    RalphyC 9 on at
    ModelDrivenFormintegration not working on embedded canvas app in D365 PowerApp
    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
  • Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    ModelDrivenFormintegration not working on embedded canvas app in D365 PowerApp
    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?
     
  • Suggested answer
    Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    ModelDrivenFormintegration not working on embedded canvas app in D365 PowerApp
    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
     

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans