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:
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
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.
Hi Lorne,
Thanks for the quick reply.
The embedded canvas app will live in a custom CE app :)
Thanks in advance!
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156