Embed Canvas app in model-driven app
"Microsoft officially integrates Canvas apps in ModelDriven apps only in the near future but Chuck Norris never waits for Microsoft to appear in a ModelDriven app."
Microsoft announced that the rollout of the integration of Canvas apps in Modeldriven apps has started and will reach Europe in the near future. As I'm waiting already for weeks for this feature I used a demo environment in India to get hands on right now.
My usecase:
In the account form a canvas app is shown which should show us a fact about Chuck Norris received from a public webservice based on a parameter passed to the canvas app. (click on the gif below to see the animation in fullscreen)
Lessons learned:
- Currently, it is not possible to integrate an existing canvas app. You need to create a new one as only during creation from within the Modeldriven app the app gets the property "ModelDrivenFormIntegration".
- The parameter I wanted to pass to the app (optionset attribute) was created after creating the app. Unfortunately, I have found no way to update the metadata of the modeldriven app available in the canvas app so I had to create the app again.
- I used a timer control to run a flow passing my parameter for calling the "Chuck Norris" webservice. The flow runs when the timer ends but I had to increase the timer to 500ms otherwise sometimes my parameter passed to the canavs app was not yet available and so my flow could not be executed successfully.
- When I update the optionset in the account form and save the parameter is not passed again to the canvas app instead I had to refresh the UCI form.
Please find below some screenshots of the powerapp explaining roughly the configuration:
All in all, I love the new feature and looking forward to starting working with it.
Comments
-
Hi Sophia,
no, I do not know.
In the preview release notes for this feature it was mentioned that this feature will be available in the future for mobile devices too.
In the announcement for the general availability mobile device was not mentioned (http://bit.ly/2sMckJ3) but as it is mentioned in the roadmap list for powerapps I hope we will get this support within the next months.
-
Hello Lars,
thanks for sharing your experience.
Do you know when this feature will be available for mobile (phone&tablet), and not just for web?
*This post is locked for comments