cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shweta1223
Regular Visitor

Using Launch function in powerapps

Hi everyone

I have added a powerapp webpart on my site page and want to reload the page / open a page url in same window as my site page on sharepoint online site. I have used the launch function but am unable to achiebe so. Providing LaunchTarget.replace is not working at my end. Any headsup for this would be appreciated

7 REPLIES 7
eka24
Super User
Super User

Can you state the exact code you are using that is not working?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Launch(
"link to page",{},
LaunchTarget.Replace
),
eka24
Super User
Super User

Your code seems fine. I just tested with:

Launch("http://bing.com/search", {}, LaunchTarget.Replace) which works.

Do you get errors in your code? if not then save and publish the App to see if there would be any difference

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

I did publish the app and am trying with the same codeb ut console shows me the following error

The frame attempting navigation of the top-level window is sandboxed, but the flag of 'allow-top-navigation' or 'allow-top-navigation-by-user-activation' is not set.

I have added powerapps on a site page using app id.

eka24
Super User
Super User

is it now working?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

No, am getting the above error in console

@shweta1223 ,

 

Still have this issue? I'm getting the same exact thing... I even tried adding the listID, viewID parameters and all of them give this same error as you stated:

 

"The frame attempting navigation of the top-level window is sandboxed, but the flag of 'allow-top-navigation' or 'allow-top-navigation-by-user-activation' is not set."

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,498)