Site icon @WonderLaura

Embed PowerApps on SharePoint Modern Pages

** 11/2019 update: Note that this post was originally written in 2017.  In the meantime, a new PowerApps web part has been introduced to the product.  So, the embed code method in this post only needs to be used if the PowerApps web part is not available to you.

PowerApps can be embedded on pages, using an embed code.

  1. Go to web.powerapps.com and then click on your already existing app, to open it.
  2. On the File menu, click Share.
  3. Go to the Details tab.
  4. Take a look at your App ID.  Copy it and put it over in Notepad, you’ll need it.
  5. Close PowerApps.
  6. Go to your SharePoint site where you’d like to embed this app.  Go to Site Settings.
  7. You need to be a site collection administrator for this part.  In Site Settings at the top level of your site collection, in the Site Collection Administration section, click HTML Field Security.
    Note that if you don’t see this setting in site collection admin, go to the SharePoint Admin Center –> Settings –> Custom Script, and you have to allow custom scripts.  This is a tenant level setting.
  8. In the box, Allow iframes from this domain, type this:
    web.powerapps.com
    click Add.  Click OK.
  9. Now, go to your homepage or whatever page you’d like to embed this.  It doesn’t even *have* to be a modern page.  At the top right of the page, click Edit.
  10. Insert the Embed web part.
  11. In the web part properties on the right, use this code as your embed code, with your own App ID in there where it says AppID:
  12. You’ll see your app on the page now, and you can Publish the page.

 

There’s even a parameter function that lets you pass parameters to your PowerApp.  https://powerapps.microsoft.com/en-us/tutorials/function-param/

You can even embed PowerApps in Power BI now as well: https://powerapps.microsoft.com/en-us/blog/embed-an-app/


Exit mobile version