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

6 REPLIES 6
eka24
Super User III
Super User III

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 III
Super User III

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 III
Super User III

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

Top Solution Authors
Top Kudoed Authors
Users online (68,377)