Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Reusable Embedded Canvas App

Posted on by Microsoft Employee

What I initially deemed as a pretty easy task, now is giving me a headache to come up with a simple and clean solution/workaround.

Basically I want to use an Embedded Canvas App which I previously built and transform it to a reuseable app on 2 Main forms: 1 for Account and 1 for Contact. Depending on the entity type (Account or Contact) I want to execute some different logic in the canvas app.

What I've tried so far:

  • Try to dynamically set the Datasource of the ModeldrivenFormIntegration control
  • Work with the ModeldrivenFormIntegration control to get the entity type (logical name) => not possible
  • Check if a field exists for ModeldrivenFormIntegration.Item => can't use functions like IsBlank() because Intellisense shows errors if a field doesn't exist for the current datasource of the ModeldrivenFormIntegration

Ideally I'd like to work with the ID of the current record, but as stated above then I should be able to either use ModeldrivenFormIntegration.Item.contactid OR ModeldrivenFormIntegration.Item.accountid, depending on the Form where the ECA is running...

I also don't want to duplicate the app with slightly different logic, just as a workaround for this issue. Adding an extra field with the same logical name to both Account and Contact also seems  like a dirty solution...

Has anyone stumbled upon the same issue before and found a clean workaround? Or am I missing something like a Power Apps formula which can help?

Would love to hear your feedback!

Cheers,

Frederik

  • AriaConsulting Profile Picture
    AriaConsulting 2,655 on at
    RE: Reusable Embedded Canvas App

    Yeah, figured that was the case, but since those entities also exist in F&O and BC, it made sense to ask.  Now the bad news, AFAIK, there is no way to embed a canvas app into the D365 model driven apps outside of adding the fields and pointing the control on the properties to the canvas app except to do so through a custom plugin.  And, if you go the plugin route, know that if you need MS support in the future, the FIRST thing they will require is for you to remove the plugin.  And even then, expect them to be more challenging to deal with.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Reusable Embedded Canvas App

    Hi Lorne,

    Thanks for the quick reply.

    The embedded canvas app will live in a custom CE app :)

    Thanks in advance!

  • AriaConsulting Profile Picture
    AriaConsulting 2,655 on at
    RE: Reusable Embedded Canvas App

    Hi ,

    First need to confirm the app you're trying to do this in is CE (Sales, customer service, etc.)?  Or is it BC or F&O?  If it is F&O (or any of the apps in the F&O stream), the response is VERY different.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans