web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using Launch function ...
Power Apps
Unanswered

Using Launch function in powerapps

(0) ShareShare
ReportReport
Posted on by 14

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

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    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.

  • shweta1223 Profile Picture
    14 on at
    Launch(
    "link to page",{},
    LaunchTarget.Replace
    ),
  • eka24 Profile Picture
    20,923 on at

    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.

  • shweta1223 Profile Picture
    14 on at

    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 Profile Picture
    20,923 on at

    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.

  • shweta1223 Profile Picture
    14 on at

    No, am getting the above error in console

  • Spassler Profile Picture
    109 on at

    @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."

  • trongdaososad Profile Picture
    2 on at

    Sorry, Have you resolved this issue? Can you show me...

  • Mohandar Profile Picture
    76 on at
    Hi,
    I am facing same issue now with launch function. I have component where I have back and home button which I used on app to go back to list or home site.
    when I am testing during development it is working fine but when app is published those two button does nothing.
     
    This same component is used on other apps and both buttons are working is there any recent changes causing this issue?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard