I’m just starting out using Powerapps and want to pass parameters from my SharePoint page to my powerapp.
Problem 1.
When I use the ‘Add a Powerapp’ option in SharePoint it works fine without any parameters but as soon as I try adding a parameter say, ?PageName=DDG onto the end of the URL the powerapp disappears from view.
Problem 2
I have also tried using the ‘Embed’ option with an HTML iFrame statement. This seems to allow parameters to be added as the PowerApp remains in view in SharePoint. However I don’t know how to access this parameter from the powerapp itself. Whenever I refer to the parameter (PARAM) it doesn’t recognise the name I have used as I have not initialized it anywhere in the powerapp, but if I initialised it it would lose the content passed over.
I’m new to this so any help would be greatly appreciated.
Regards
Pete
Hi.. i hope this may help you: Passing Parameters In Power App Forms That Are Embedded In SharePoint Pages Is Not Possible. This Is A Microsoft Power App Bug Which Microsoft Has Acknowledged And Is Working On A Resolution.
But This Does Not Stop Us From Exploring Ways To Accomplish Our Desired Outcome. Here’s What We Can Do –
We Have To Pass Parameters Using Query String In Power Apps Form So That On Another Page It Would Get
The Parameter And Show The Filtered Data Based On Parameters.
Develop Power App Forms:
Develop The Canvas Forms In Power Apps And Then Using Data Table Control Load The List Data As Per Need.
Embed These Forms In SharePoint Modern Pages Using Embed Featured. These Power Apps Embedded
Inside <Iframe> Tag On A Page. Now We Have Two Different Modern Pages Each Having Power App Forms.
Pass Parameter:
Pass The Parameter On Click On Any Item From One Page To Another Using Navigate Function.
Navigate(ScreenToNavigate, ScreenTransition.Fade, { Argument1: 04 , Argument2: SomeText })
In Another Page You Need To Collect/Catch This Parameter Value, You Can Get That By Different Functions,
Param(“ParamName”) Functions Or By Direct Assigning Values.
LookUp(‘***** Slips’, ‘Case Title’.Value = Param(“[ParamName]”))
Filter(‘Case ****’,CaseTitle.Value=SelectParamName.SelectedText.Value)
Now The Problem Is In Another Screen/Page Parameter Value Cannot Be Read As The Forms Are Embedded
In Iframe. This Has Been Raised In Microsoft Support And MS Had Considered This As Limitation.
Created Different Screens In One Power App Forms
The Solution In This Scenario Is To Create Multiple Screens In A Same Power App Form And Then Embed
This Form In SharePoint Modern Page. Above Functions Remain Same But Now As There Is No Iframe It
Reads The Parameter And Get The Correct Value.