Skip to content
Home » Launch function in Power Apps

Launch function in Power Apps

The Launch function in Power Apps is used to open a web page, another app, or trigger an action in a browser or external app from within a Power Apps app.

It is commonly used to navigate to external websites, open canvas apps, emails etc.




Syntax:

Launch(URL [, ParameterName1, ParameterValue1, ...])
  • URL: A required argument that specifies the URL of the webpage to open.
  • ParameterName1, ParameterValue1, …: Optional arguments that append query string parameters to the URL.

Examples:

Following formula will open http://www.google.com in the default web browser.

Launch("https://www.google.com")

Let’s add a button control and name it Launch. Then, go to the OnSelect property of the button and write the formula provided above.

Now, click on button and you can see it opens the URL www.google.com in the default web browser.

Launching Canvas App using Launch function

To open another canvas app from a canvas app in Power Apps using the Launch function, you need to use the web URL of the target canvas app.

You can find the URL for the app in the Power Apps web studio. You can find the web link for your app, go to Apps in Power Apps, select the app you wish to open, and copy its web link (URL) as shown below.

Now, add a button name it Launch App then in the OnSelect property of the button, use the Launch function to open the target app’s URL.




Now, when you click the Launch App button, the target app will open on your browser.

 

Note that: If the Launch function is used to open a Power App and the app is not visible to the end user, it’s advisable to check whether the app is being blocked by the browser’s pop-up blocker or if the browser is awaiting the user’s response to a dialog box that asks if they want to navigate to a new screen.

Using parameters in Launch function

You can use parameters in the Launch function to pass dynamic data to a URL.

Let’s create dynamic URL that opens the Wikipedia page for a specific country selected from a dropdown list.

First, add a dropdown control and name it ddl_country. This control will contain a list of countries, as shown below.

Now, when users select a country name from drop down list. The selected value is concatenated with the Wikipedia URL, and it opens a selected country page on Wikipedia.

Launch("https://en.wikipedia.org/wiki/" & ddl_country.Selected.Value)

 

Now, run the app, select a country Canada from the dropdown, and click the Launch button.

You can see, it opens the country Canada page on Wikipedia

 

Read Also..

Navigate function in Power Apps

Loading

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from SQL BI Tutorials

Subscribe now to keep reading and get access to the full archive.

Continue reading