Power Apps Host control
Dynamics 365 for Finance and Operations is now being licensed as Dynamics 365 Finance and Dynamics 365 Supply Chain Management. For more information about these licensing changes, see Dynamics 365 Licensing Update.
In Microsoft Power Apps, you can manage organizational data by running an app that you created, or an app that someone else created and shared with you. Apps run on mobile devices such as phones, or you can run them in a browser by starting Finance and Operations apps. You can create many types of apps without having to learn a programming language such as C#. By using the Power Apps Host control that is available to developers who use Microsoft Visual Studio, you can embed a Power Apps app that you’ve created or a shared Power Apps app. To learn more about Power Apps, see https://powerapps.microsoft.com.
Host a Power Apps app on a page
In Power Apps, find the web-based Power Apps app that you want to host, and record or copy the App ID value.
In Visual Studio, open your project, and then, in the form designer, add an instance of a Power Apps Host control to your page.
In the Properties pane, enter the App ID value.
If your Power Apps app shares or is linked to the current data source on your page, you should pass the ID of the primary or linked key field for the data that you want your Power Apps app to show. In this case, provide the ID as the value of the Entity ID, Entity ID Data Source/Field, or DataMethod property. This value will then be passed to your Power Apps app as a parm value, and your Power Apps app must use that value to obtain the linked data.
In some cases, your Power Apps app might be hosted in a development or sandbox Power Apps environment that is provided by Microsoft. In this case, you must supply that override URL as the value of the Power Apps Environment Override property.
Sizing is determined by the container that you put your control in. If you put your control in a form pattern that has limited available space, and your Power Apps app has been designed to be larger than the available space, your Power Apps app will have scroll bars.