cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Context variables from surrounding SharePoint page

I am designing a PowerApp that will be included inside a page of a SharePoint online site.

I would like to have a Context variable within the App that is set up by the page (for example a property that can be set in the web page part containing the PowerApp.

 

In this way, I can condition (for example filter data) the App behavior according to the page context. Inserting the same app in two different pages, each setting the variable to a different value, will lead to two different behaviors or output data.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Context variables from surrounding SharePoint page

To the best of my knowledge this isn't currently possible.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Highlighted
Dual Super User III
Dual Super User III

Re: Context variables from surrounding SharePoint page

To the best of my knowledge this isn't currently possible.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Highlighted
Super User III
Super User III

Re: Context variables from surrounding SharePoint page

@massimoc 

The previous post of @Pstork1 is correct.  You cannot pass a variable included the SharePoint page URL (found at the top of the browser).

 

Another idea is to include the parameter within the IFRAME of an embedded PowerApp.  I'll share a link to a forum post where the user appears was successful doing this in case if it meets yours requirements.

 

Link to Relevant Forum Post:

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Pass-Parameters-in-iframe-embedded-...

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (7,285)