-
|
I need to add a codeapp built in angular showing list of products from an external application which has dataverse product reference. Users want to interact this app on Work Order entity as an embedded experience and when they add product it should add it as a Work Order Product Line. Is it possible at the moment ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Embedding a Code App in a Model-Driven App is supported today via an iframe web resource. Here's how to get it working:
Full walkthrough here: https://learn.microsoft.com/en-us/power-apps/developer/code-apps/how-to/embed-iframe Note that passing MDA entity context (record ID, entity type) into the Code App isn't automatic — you'd need to pass those as query parameters on the iframe |
Beta Was this translation helpful? Give feedback.
Embedding a Code App in a Model-Driven App is supported today via an iframe web resource. Here's how to get it working:
Get your Code App's play URL — open the app in Power Apps and copy the URL from the browser. It follows the form:
\n https://apps.powerapps.com/play/e/{environmentId}/app/{appId}?tenantid={tenantId}\n\n2. Add an iframe web resource to your MDA pointing to that URL.Update the CSP
frame-ancestorsdirective — by default, Code Apps only allow framing from*.powerapps.com. To allow your MDA host (e.g.https://<your-org>.crm.dynamics.com), add it to theframe-ancestorslist in the Power Platform admin center. Without this step the browser will block the frame.Full wal…