cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mengting
Advocate II
Advocate II

Launch Function in a embedded PowerApps on a SharePoint modern page to launch another PowerApps

The scenario is:


There are two PowerApps A and B. A is embedded on a SharePoint Modern page. There is a Launch function in the onSelect property of a button in A in order to launch B.

 

 

Launch("https://web.powerapps.com/apps/80e4ed4a-982e-404d-85fd-9eed1d8ddabc")

 

When playing A in the preview mode, the button works fine to launch the PowerApps B in a new window both in IE and Google Chrome.

 

But when click on the button in the embedded A on the SharePoint modern page:

  • In IE, the button does not work at all (nothing happens when click on it)
  • In Google Chrome, it opens a new window and try to open B. But it keeps loading and B never openned.


I found the URLs are different between launching B in the preview mode and in the embeded A app on the modern page (by using chrome). There are extra texts "embed" in the URL:

 

  • Preview mode of A: 

 

https://web.powerapps.com/webplayer/app?appid=%2Fproviders%2FMicrosoft.PowerApps%2Fapps%2F80e4ed4a-982e-404d-85fd-9eed1d8ddabc
  • Embedded A on modern SP page (this URL not working): 
https://web.powerapps.com/webplayer/embedapp?appid=%2Fproviders%2FMicrosoft.PowerApps%2Fapps%2F80e4ed4a-982e-404d-85fd-9eed1d8ddabc


The Launch function for launching B from A is not working as expectation. Is there any way to avoid the URL change when click on the button in the embedded app A when launching B.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi Ananda,

 

I somehow solved this issue myself.

 

Instead of write below url in the Launch function:

Launch("https://web.powerapps.com/apps/80e4ed4a-982e-404d-85fd-9eed1d8ddabc")


Use the one below instead. Just replace "80e4ed4a-982e-404d-85fd-9eed1d8ddabc" with your own app ID:

Launch("https://web.powerapps.com/webplayer/app?appId=%2fproviders%2fMicrosoft.PowerApps%2fapps%2f80e4ed4a-982e-404d-85fd-9eed1d8ddabc")

 

View solution in original post

2 REPLIES 2
ananda
Resolver I
Resolver I

I'm facing same issue. Found any work around ? Can't ask client to change the browser setting..:)

Thanks

Hi Ananda,

 

I somehow solved this issue myself.

 

Instead of write below url in the Launch function:

Launch("https://web.powerapps.com/apps/80e4ed4a-982e-404d-85fd-9eed1d8ddabc")


Use the one below instead. Just replace "80e4ed4a-982e-404d-85fd-9eed1d8ddabc" with your own app ID:

Launch("https://web.powerapps.com/webplayer/app?appId=%2fproviders%2fMicrosoft.PowerApps%2fapps%2f80e4ed4a-982e-404d-85fd-9eed1d8ddabc")

 

View solution in original post

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 (3,302)