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 / Launch function workin...
Power Apps
Unanswered

Launch function working only in preview mode, stops when app is published

(0) ShareShare
ReportReport
Posted on by 294

Hello,

 

I have a button which launches another app, it only works in preview mode and stops working when tested in the published version of the app.

 

Any ideas?

 

Thanks

Categories:
I have the same question (0)
  • anees Profile Picture
    on at

    What browser are you using? Is your button inside another control (say a Form)? The website you are launching to, is it in the same security zone as your app?

     

    See: https://support.microsoft.com/en-us/help/17479/windows-internet-explorer-11-change-security-privacy-settings

  • ck25415 Profile Picture
    294 on at

    I tried in IE, chrome and edge. Sometimes it works the first time and stops working. The button is used in a screen of an app. It launches another app built using powerapps, this app was launched scucessfully using another button with launch function.

    The difference between the working button and non-working button is the non working one has a delegation warning but I have increased the count to 2000 in app settings and the number of items are less than 2000.

     

    It used work fine before the launch of app checker function and thats when the yellow delegation warning triangle started to appear on this non-working button and it stopped working.

     

    Thanks,

  • v-xida-msft Profile Picture
    on at

    Hi @ck25415,

     

    Could you please share more details about the formula within the OnSelect property of the Non-working button?

     

    I have made a test on my side and don't have the issue that you mentioned. The screenshot as below:2.JPG

     

     

    The OnSelect proprty of the Launch button set to following formula:

     

    ClearCollect(Collection2,Filter('20180718_case11',Status.Value in Collection1.Value));
    Launch("https://web.powerapps.com/webplayer/iframeapp?source=iframe &appId=/providers/Microsoft.PowerApps/apps/xxxx0e22-6519-xx6f-90fd-66a0d31exxxx")

    Note: The Filter function within above formula could not be delegated.

     

     

    The GIF image as below:Test1.gif

     

     

     

    Please check if you have allowed Pop-ups within your browsers. In other words, please take a try to enable/turn on the Pop-up option within your browser.3.JPG

     

    More details about enable/turn on (Allow) the Pop-up option, please check the following article:

    https://support.microsoft.com/en-us/help/17479/windows-internet-explorer-11-change-security-privacy-settings

     

    In addition, you could also take a try to put the formula of Button control (Launch button) into a Concurrent function, then check if the issue is solved. I have made a test, please take a try with the following formula:

     

    Concurrent(
     ClearCollect(Collection2,Filter('20180718_case11',Status.Value in Collection1.Value)),
     Launch("https://web.powerapps.com/webplayer/iframeapp?source=iframe
    &appId=/providers/Microsoft.PowerApps/apps/xxxx0e22-6519-xx6f-90fd-66a0d31exxxx")
    )

     

    More details about the Concurrent function, please check the following blog:

    https://powerapps.microsoft.com/en-us/blog/enjoy-faster-startup-times-with-the-new-concurrent-function/

     

    Best regards,

    Kris

     

     

  • ck25415 Profile Picture
    294 on at

    Hello Kris,

     

    This is the on select formula I am using for the button

     

     

    3.JPG

     

    I was not able to use concurrent function with this. I have popups enabled on all my browsers.

     

    Thanks,

  • ck25415 Profile Picture
    294 on at

    @v-xida-msft @anees Is there a way I can debug this issue. The buttons are not working for some users and these buttons either open a different app in powerapps or open a word document from a sharepoint library. The button greys out when the user clicks on it. The users have pop-ups enabled and tried it in IE, chrome and edge, cleared browser cache and nothing worked. While they can access a different button with similar functionality they have issue with some butttons. When I try them in preview mode I dont see an issue with any of them. Let me know where should I start on this issue.

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Hello, 

    It seems that I have the same problem. Launch() function behaves ok in studio enviroment and fails to start in run mode.

    To test the app, I used IE, Chrome and powerapps app on mobile  and desktop with the same result the button doesn't start the app as expected ( no error returned !).

     

    I called the function with a simple: LAUNCH ("https://web.powerapps.com/apps/9fac51f7-43d8- .....").

     

    Is there something i did wrong ?

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