cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
Anonymous
Not applicable

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

Anonymous
Not applicable

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")

 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,579)