cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CindyZ
Post Partisan
Post Partisan

One Power App; different list and library results and color theme based upon the starting SharePoint source site.

I have three different SharePoint sites from which I plan to access a Power App. 

 

I'd like to have only one app instead of thee apps. 

 

So, I'd like to know if I can click a button from within any of the sites so that whenever the Power App opens up, it will open showing customized colors that coordinate with Site colors and filter lists with information relative to each site. 

 

One Power App; different list and library results and color theme based upon the starting SharePoint source site. 

If so, would someone please point me in the right direction? 

 

Thank you. 

1 ACCEPTED SOLUTION

Accepted Solutions
GarethPrisk
Resident Rockstar
Resident Rockstar

The simplest thing to do is to de-couple the app from the SharePoint lists themselves.

Meaning, you'd go to https://make.powerapps.com, pick the appropriate environment, and then create the app as a standalone app - not from the lists themselves.

 

  1. Create standalone app
  2. Add SharePoint locations to app
  3. Add hyperlinks to app on each list's navigation
    • Specific link from each site, with their specific parameter - like &listSource=X
    • This way, you can run the same app from any of the locations
  4. In your app, have a Button on the first screen of the app
    • OnVisible of first screen, select Button
    • Button will read the parameter and then navigate/filter as needed
    • Basically
Switch(
	Param("listSource"),
	"X",
	true,//Replace true with X app action
	"Y",
	true,//Replace true with Y app action
	"Z",
	true,//Replace true with Z app action
	false//Replace false with default action, if param not known or not valid
)

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-param#param

https://powerapps.microsoft.com/en-us/blog/powerapps-deep-linking/

 

View solution in original post

2 REPLIES 2
GarethPrisk
Resident Rockstar
Resident Rockstar

The simplest thing to do is to de-couple the app from the SharePoint lists themselves.

Meaning, you'd go to https://make.powerapps.com, pick the appropriate environment, and then create the app as a standalone app - not from the lists themselves.

 

  1. Create standalone app
  2. Add SharePoint locations to app
  3. Add hyperlinks to app on each list's navigation
    • Specific link from each site, with their specific parameter - like &listSource=X
    • This way, you can run the same app from any of the locations
  4. In your app, have a Button on the first screen of the app
    • OnVisible of first screen, select Button
    • Button will read the parameter and then navigate/filter as needed
    • Basically
Switch(
	Param("listSource"),
	"X",
	true,//Replace true with X app action
	"Y",
	true,//Replace true with Y app action
	"Z",
	true,//Replace true with Z app action
	false//Replace false with default action, if param not known or not valid
)

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-param#param

https://powerapps.microsoft.com/en-us/blog/powerapps-deep-linking/

 

View solution in original post

CindyZ
Post Partisan
Post Partisan

Thanks ever so much for your help on this!  

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,598)