cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MarkusG
Frequent Visitor

Navigation in App.OnStart not allowed anymore (New App.StartScreen??) - Deep Link problem

Hi,

 

Issue Description:

Since some days I have the problem that the deep linking parameters that I set in App.Onstart are not working anymore. 

I want the users that use the deep link to navigate to a separate page with all the details about the entry.

 

Apparently it is not allowed anymore to use the "Navigate" function. There is now also an App.StartScreen property and I'm not sure if that is new or was there all the time. I was not able to find any information about it online.

Does anyone know how to fix this, so that the deep linking is working again??

 

Parameters in App.OnStart:

Set(varDemandIDView, Value(Param("DemandIDView")));
If (varDemandIDView <> 0, Set(varRecord, LookUp('Project Portfolio Management', ID = varDemandIDView)); Navigate(ScreenDisplayDemand_OnePage));

 

Error Message:

error Onstart.jpg

 

 

 

 

21 REPLIES 21

@timl , thank you very much for sharing this. This is very useful! Looking forward to the new bright future. 😉

@timl I read the above documents which are very helpful for future rollouts and for any issues that are in the foreseeable future with OnStart user lookups. However, when I moved my Param formula from OnStart to StartScreen and made the necessary changes, I am getting an error "Invalid argument type (Control).  Expecting Control value instead.".  See formulas below.  Any idea why this would not work?

 

OnStart original formula:

If(
!IsBlank(Param("ID")),
Navigate(HREdit),
Navigate(Gallery2)
)

 

StartScreen formula:

If(
!IsBlank(Param("ID")),
HREdit, 
Gallery2
)

  

I copied and paste your code and it works for me: 

If(
!IsBlank(Param("ID")),
IfScreen,
ElseScreen
)

Make sure you to save your changes, close the app and re-open and see if the problem still exists.

timl
Super User
Super User

Hi @GoGorilla 

This is very strange. If closing and re-opening the app doesn't work, can you confirm where this error appears? Does it appear against the StartScreen property?

GoGorilla
Helper III
Helper III

@Mostafa @timl  I tried closing and re-opening the app but it still is throwing the error against the StartScreen property.  I am working in a GCC E3 environment but that should not matter given that the Navigate function no longer works in OnStart property and the StartScreen property is available, but I have seen where Microsoft states that something is available for GCC when in fact it has not launched in every tenant.

@GoGorilla Please send inbox me your email and will setup a call to check in your issue.

TWolsten
Helper III
Helper III

I am still struggling with this new StartScreen.

 

My previous function in the OnStart was:

If(
  !IsBlank(Param("RiskID")),
        Set(varID, Value(Param("RiskID")));
        Navigate(RiskFormScreen, Fade)
);

 

But I can't seem to set the variable and then navigate to the Form

If(
  !IsBlank(Param("RiskID")),
        Set(varID, Value(Param("RiskID"))) + FormScreen,
        Home
)

 

Mostafa
Microsoft
Microsoft

Global Variables are not supported in StartScreen. Read more here: App object in Power Apps - Power Apps | Microsoft Docs

 

Does that mean my old solution will no longer work?

 

How can I pass an ID of the item from the Param in the URL into the app to show the specific item in the Gallery when the app starts up?

Mostafa
Microsoft
Microsoft

@TWolsten you can still keep the app using OnStart with no issues. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,866)