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 / OnStart is launching t...
Power Apps
Answered

OnStart is launching the second screen instead of the first one

(0) ShareShare
ReportReport
Posted on by 22

I have an app that is jumping directly to the second screen, and when i verified the different sections, with respect that i put on STARTSCREEN to navigate to the main page (RegScreen), its when I "Run OnStart" it takes me to the second screen... seems that I didn't set well the Onstart parameters: 

i set these variable for the deep linking, and i "Enabled Navigate function on App.Onstart.

 

 

OnStart:
Set( varQuoteID,  Value(Param("QuoteID")));
If( varQuoteID <> 0,
Set(VarItem, LookUp( 'SI Quotation Register',
ID = varQuoteID));Navigate(QuotePage))

 

 

Could you please help in this?... and if you show me how to shift also this function to StartScreen... also will be appreciated

Categories:
  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    StartScreen should be almost the same code.

    Set( varQuoteID, Value(Param("QuoteID")));
    If( varQuoteID <> 0,
    Set(VarItem, LookUp( 'SI Quotation Register',
    ID = varQuoteID));QuotePage,RegScreen)
  • YkUser Profile Picture
    22 on at

    Thank You, but it is giving me error all the time when i try setting any function / parameter in Startscreen... even a simple variable is giving me error...  es. Set(varTrial, Gray) is giving also error, 

     any idea what is happening in my app?

  • Verified answer
    Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    You'll need to break down the logic to just the navigation and then set the variables in OnVisible of the appropriate page.  Like this

    #StartScreen
    If(Value(Param("QuoteID")) <> 0,QuotePage,RegScreen)
    
    #QuotePage OnVisible
    Set( varQuoteID, Value(Param("QuoteID")));
    Set(VarItem, LookUp( 'SI Quotation Register',
    ID = varQuoteID));
    
    #RegScreen OnVisible
    Set( varQuoteID, 0)
  • YkUser Profile Picture
    22 on at

    Thank you for your Reply, and just to share a finding that also solved my issue if i remained in OnStart is that i changed "<>" with "=!" ... I don't know what is the difference but it worked in my case.

     

    thanks a lot, 

    Regards, 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard