
We have a shopify website where we want to embed a power app aplication, for the staff, and to display certain information of the the app in each of the customers profile page.
The information displayed on the customer profile page is private and unique so it is necesarry to check the user name wich is currently logged in each moment.
¿Is it possible to do this with power apps?
Unfortunately, the Powerapp canvas app cannot read the parent page context. But to meet your requirement indirectly - you can make use of the PARAM function.
In your parent page you could use a function that fetches the logged in user and generates the below url.
https://apps.powerapps.com/play/<GUID>?tenantId=<GUID>?userName=<loggedinuser>
This dynamically generated URL could be used as the PowerApp Embed source. Now you would be able pass the data to the embed using the PARAM function
Basically, this means the text of the Label1 will be of the Parameter value of "USERNAME" parameter of the specific app's Power App URL. This parameter value will be obtained from the parent page.
Wrote a detailed article below.
Passing data to Powerapp Embed and Using Parameters in PowerApps | by satyav | Jun, 2022 | Medium