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 8

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 make it more generic so it's reusable 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 => haven't found a working solution yet
  • 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 of with the same logical name to both Account and Contact which contains the entity type 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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
11manish Profile Picture

11manish 46 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 35

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 35 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans