Embed Canvas Apps to PowerApps Portal

As you know, day-by-day PowerApps is becoming more and more powerful, and it can be easily embedded into any website. This blog will explain how you can embed Canvas PowerApps to PowerApps Portal.

Follow Below steps to achieve this:

Steps to get the App Id of Canvas App:

  1. Go to Apps -> Select the Canvas App -> Click on more commands “…” -> Select Details
  1. You will get App ID in Details
    • Copy this App ID

Steps for embedding Canvas App in PowerApps Portal

I will explain two ways to embed canvas apps

Method 1:

  1. Code to Embed the Canvas app

Code: <iframe width=”[W]” height=”[H]” src=”https://apps.powerapps.com/play/[AppID]?source=website&screenColor=rgba(165,34,55,1)” allow=”geolocation; microphone; camera”/>

[W]: width of Iframe

[H]: height of Iframe

[AppID]: id of canvas App

  1. Select the webpage (page) on which you want to embed the canvas app. 
  1. Go to “Source Code Editor” of the Webpage(page)

Enter the Code here,

<div class="row sectionBlockLayout" style="display: flex; flex-wrap: wrap; padding: 8px; margin: 0px; text-align: left; min-height: 100px;">
  <div class="container" style="display: flex; flex-wrap: wrap;">
    <div class="col-md-12 columnBlockLayout" style="display: flex; flex-direction: column;">
    <iframe frameborder="0" width="700" height="500" src="https://apps.powerapps.com/play/b74d3c24-940e-4bbc-8541-db9d8f8e87ec?source=website&amp;screenColor=rgba(165,34,55,1)" allow="geolocation; microphone; camera">
      </iframe>
</div>
  </div>
</div>
  1. Save the code.
  2. Once you save the code browse the website you will see the canvas app

Method 2:

  1. Select the webpage (page) on which you want to add the canvas app. 
  1. Go to Components -> Select Iframe
  1. After Adding Iframe update the properties of Iframe.

Width: width of Iframe

Height: height of Iframe

Link: https://apps.powerapps.com/play/[AppID]?source=website

Example: https://apps.powerapps.com/play/b74d3c24-940e-4bbc-8541-db9d8f8e87ec?source=website

AppID is the Id of canvas App.

  1. After Adding Link, you will see Canvas app

NOTES:

  1. Currently, only Active Directory Users can see or use the Canvas App from PowerApps portal
  2. Anonymous users will not be able to access the Canvas App they will see below screen.
  1. Portal Securities like Web Roles, Entity Permissions are not applicable to the canvas app

1 thought on “Embed Canvas Apps to PowerApps Portal”

  1. Very insightful and easy to follow. Thanks, it helped me work with my one of my projects where I wanted to embed an intake form developed in powerapps for our functional teams on our website.

Leave a Reply

Your email address will not be published. Required fields are marked *