There is no easy way to embed PowerApps with parameters in SharePoint, but we have found a cool workaround for this. here I’ll show you! How to Embed PowerApps in SharePoint with parameters

  1. Set up a local variable called MyLocalVaraible that is set to Param(“MyParam”)
How to Embed PowerApps in SharePoint with parameters

2. Add a label to the screen and set MyLocalVariable as the Text property value

How to Embed PowerApps in SharePoint with parameters

3. head Back to SharePoint and add the new web part to the page. Make sure you add Embed web part, not Microsoft PowerApps (Preview)

How to Embed PowerApps in SharePoint with parameters

Logic:

[PowerApp App Weblink url] + ? + [Parameter name] = [Value]

Example code:

<iframe width="830px" height="466px" src="https://apps.powerapps.com/play/3fa5149e-5y53-82db-bu96-e2e73519601a?tenantId=13721917-6032-6366-39c5-i6ac572tssa3?MyParam=Wut"></iframe>

paste in the script from above and replace weburl

How to Embed PowerApps in SharePoint with parameters

You find your app’s weblink from PowerApps by clicking on the three dots on the side of the app

How to Embed PowerApps in SharePoint with parameters

Under Web link we have our web link which we will need to embed the app

How to Embed PowerApps in SharePoint with parameters