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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Reusable Embedded Canvas App

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • AriaConsulting Profile Picture
    4 on at

    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.

  • Community Member Profile Picture
    on at

    Hi Lorne,

    Thanks for the quick reply.

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

    Thanks in advance!

  • AriaConsulting Profile Picture
    4 on at

    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.

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 Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
11manish Profile Picture

11manish 174

#2
ManoVerse Profile Picture

ManoVerse 58 Super User 2026 Season 1

#3
Niki Patel Profile Picture

Niki Patel 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans