Business Applications, dynamics 365, PowerApps, Uncategorized

Converting an existing Canvas App into an Embedded Canvas App on a Model-Driven App’s Form

Start with the article here 

And here to understand the concept of embedded Canvas Apps

Now… How do we embed an existing Canvas App? Do we have rebuild it from scratch following the steps described in the articles above? Thanks to Microsoft, not.

  1. Open the existing Canvas App in the editor.ce1
  2. Click App settings then Edit app name.ce2
  3. Copy App ID and store it for the future.ce3
  4. Open Account form on a Dynamics 365 instance. For the text field on the form Field Properties -> Controls tab click Add Control.ce4
  5. From the list of controls select Canvas app. Click Add.ce5
  6. Click on the Edit icon to edit App ID.ce6
  7. Paste the existing Canvas App App ID here then click OK.ce7
  8. Click on the Customize button to open the editor.

ce8

9. You’ve got the context passed to the Canvas App now. ModelDrivenFormIntegration. Data contains the list of records, in our case – just one.

ce9

10. Still, we use First() to get the only record in the list and Name property to display on the form.

ce10

11. This is how it looks inside a model-driven app.

ce11

Now embedded.

All credits goes to Ravi Mukkelli. Check his blog to learn more about some cool Dynamics 365 and PowerApps stuff.

 

2 thoughts on “Converting an existing Canvas App into an Embedded Canvas App on a Model-Driven App’s Form”

  1. Hi, My canvas app is not showing on the crm account form load. what shd i do to display it ? pls advise.

    Like

Leave a comment