cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Brice235i
Level 8

Is it possible using URL query string to launch an app on a screen other than the default screen?

Hi I thought this might be possible by passing a parameter, but doesn't seem to work.

On my welcome screen - OnStart

Set(StartScreen,Param("Screen"));
If (StartScreen="DetailScreen1", Navigate(DetailScreen1,ScreenTransition.None))

 

Then in the URL I have

https://web.powerapps.com/apps/[app guid]?Screen=DetailScreen1

 

Unfortunately the Welcome screen persists.  Would anyone have any ideas on what I'm doing wrong?

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Is it possible using URL query string to launch an app on a screen other than the default screen

Hi @Brice235i,

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

Please check if your app have received a proper Parameter value from the URL that you provided (https://web.powerapps.com/apps/[app guid]?Screen=DetailScreen1). You could consider take a try to add a Label control within the first screen, set the Text proeprty of the Label control to following:

Param("Screen")

check if the Parameter value shows well.

The user @Itsmesri has faced same issue with you, please check my response within the following thread:

https://powerusers.microsoft.com/t5/General-Discussion/Lookup-always-going-to-first-item-for-list-de...

In addition, please also take a try to type the following formula within the OnVisible or OnStart property of the first screen of your app:

If (
!IsBlank(Param("Screen")) && Param("Screen")="DetailScreen1",
Navigate(DetailScreen1,ScreenTransition.None)
)

then check if the issue is solved.

Please also check and see if the following blog would help in your scenario:

https://blog.kloud.com.au/2017/10/17/how-to-pass-parameters-into-a-powerapp/

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
Super User
Super User

Re: Is it possible using URL query string to launch an app on a screen other than the default screen

Hi @Brice235i

 

You should have a look at this article about PowerApps deep linking.

Basically, the solution is to use a timer control to navigate to another after 1 sec or so after the app launching.

 

Theo

 

Brice235i
Level 8

Re: Is it possible using URL query string to launch an app on a screen other than the default screen

Thanks Theo, I did find this article.  Unfortunately it is quite advanced and I do not understand it.

I'm trying to find a really simple answer to how open an app on a different screen when the query is called in the URL...   http://app address ?screen2

 

Thanks.

Super User
Super User

Re: Is it possible using URL query string to launch an app on a screen other than the default screen

What you need to do, is on your first screen, I sert a timer control. Then set some properties of this control :

Timer.AutoStart : true (so the time start as soon as you arrive on the first screen, basically when the app is launched)

Timer.Visible : false (so the users can't see the timer)

Timer:Duration : 500 (0.5 seconde)

Timer.OnTimerEnd : If(!IsBlank(Param("yourParam")),Navigate(DetailScreen, None))

 

So, when the app is launched, the timer starts and it stops 0,5 seconde after. When the timer stops, if the parameter has been provided in the URL you'll navigate to another screen. 

 

Hope this makes things a bit more understandable to you. 

 

Théo

Brice235i
Level 8

Re: Is it possible using URL query string to launch an app on a screen other than the default screen

Hi, thank you for your reply.  That is really helpful.

Unfortunately it doesn't work, so I must have done something wrong.  

Firstly I set the parameter on the Onstart property of the Welcome screen - 

Set(StartScreen,Param("screen"))

 

Then I added the timer control..  which includes this formula on Timer End:

If(!IsBlank(Param("screen")),Navigate(DetailScreen1, None))

 

Tested using this URL:

https://web.powerapps.com/apps/[app guid]?Screen=DetailScreen1

 

It stayed on the Welcome screen and did not go to the Detail Screen as expected.

Highlighted
Super User
Super User

Re: Is it possible using URL query string to launch an app on a screen other than the default screen

The Param function is probably case sensitive. Try Param("Screen") Also check that your timer starts automatically. And you can add a button and set the OnSelect property to Set(screenparam,Param("Screen")) and check is the value is well retrieved. Théo
Community Support Team
Community Support Team

Re: Is it possible using URL query string to launch an app on a screen other than the default screen

Hi @Brice235i,

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

Please check if your app have received a proper Parameter value from the URL that you provided (https://web.powerapps.com/apps/[app guid]?Screen=DetailScreen1). You could consider take a try to add a Label control within the first screen, set the Text proeprty of the Label control to following:

Param("Screen")

check if the Parameter value shows well.

The user @Itsmesri has faced same issue with you, please check my response within the following thread:

https://powerusers.microsoft.com/t5/General-Discussion/Lookup-always-going-to-first-item-for-list-de...

In addition, please also take a try to type the following formula within the OnVisible or OnStart property of the first screen of your app:

If (
!IsBlank(Param("Screen")) && Param("Screen")="DetailScreen1",
Navigate(DetailScreen1,ScreenTransition.None)
)

then check if the issue is solved.

Please also check and see if the following blog would help in your scenario:

https://blog.kloud.com.au/2017/10/17/how-to-pass-parameters-into-a-powerapp/

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Brice235i
Level 8

Re: Is it possible using URL query string to launch an app on a screen other than the default screen

I am really sorry for all your trouble and thank you so much for your help.  Turns out we have environmental issues.  I built the app on my dev tenant, no problems.  Thanks again.

msmith
Level 8

Re: Is it possible using URL query string to launch an app on a screen other than the default screen

I tried what you said on the first page, but I am getting the following. Any ideas what I am missing?2019-10-10_19-40-36.jpg

If(
!IsBlank(Param("ID")),
Set(CurrentItem, LookUp('Tasklist',ID = Value(Param("ID"))));Navigate(Home_1, None)
)

 

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,735)