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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Where to put Navigate(...
Power Apps
Answered

Where to put Navigate() to screen Param()?

(0) ShareShare
ReportReport
Posted on by 1,855

Scenario:

- Deep-link opens the PowerApp

    - Has a `screen` parameter appended to the URL

    - Example: ms-apps:////providers/Microsoft.PowerApps/apps/<my_app_id>?screen=scrWork

- Need the PowerApp to evaluate the `screen` Param() and Navigate() to correct screen

 

Tried: Placing the following code in 3 different places, each with its own ERROR!

If(
 !IsBlank(Param("screen")),
 Switch(
 Param("screen"), 
 "work", Navigate(scrWork, Fade)
 ),
 Navigate(scrHome, Fade)
)

- OnStart:

    - ERROR: Navigate is not permitted in OnSTart. Use the StartScreen property instead.

seadude_0-1655340789093.png

- StartScreen:

    - ERROR: Behavior function un an non-behavior property. You can't use the property to change values elsewhere in the app.

seadude_1-1655340789111.png

- OnVisible of the first screen (scrHome):

    - ERROR: Navigate cannot be used here since it would automatically always navigate away from this screen.

        - The error is incorrect by the way! The else statement runs contrary to the statement.

seadude_2-1655340789099.png

So... how then, should a deep link be passed to a PowerApp in this scenario?

 

@WarrenBelz ? @iAm_ManCat ? 

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    I know answer but on my cellphone so if noone helps you by tomorrow i will 

  • Verified answer
    Adrian_Celis Profile Picture
    1,652 Moderator on at

    Hi @seadude 

    You are correct in placing it in StartScreen property of the app, except you do not use Navigate, just use the screen name. Example:

    StartScreen:

    If(!IsBlank(Param("screen")),scrWork,scrHome)
  • seadude Profile Picture
    1,855 on at

    Thank you very much for the prompt reply. You got me unstuck!

     

    The `StartScreen` property is new to me.

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard