Re: Behavior function in a non-behavior property. You can't use this property to change values elsewhere in the app.
@One and @Greg27 , what do you make of this one?
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 look at the `screen` Param() and Navigate() to correct screen
Tried: Placing the following code 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.

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

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

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