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 / Show Error for Using N...
Power Apps
Answered

Show Error for Using Navigate in OnStart

(0) ShareShare
ReportReport
Posted on by 55

Hello - I would like to launch my standalone PowerApp if user click the "Edit" from SharePoint list. I followed the instruction from this article. However, it's showing an error for using Navigate OnStart (see below).

 

If(!IsBlank(Param("ID")),Set(varID, Param("ID"));Navigate(FormScreen,ScreenTransition.Fade))

 

Do I need to use StartScreen instead of OnStart? and How do I rewrite the formula above using Navigate?

 

Thanks for your help.

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @YV1 ,

     

    Yes , please se the app's StartScreen property to:

    If(
     !IsBlank(Param("ID")),
     FormScreen,
     HomeScreen
    )

    And set it's OnStart property to

    If(!IsBlank(Param("ID")),Set(varID, Param("ID")))

     

    Best Regards,

    Bof

  • Verified answer
    WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    Hi @YV1 .

    @v-bofeng-msft is correct on the first one. These are instances where OnStart runs after StartScreen, so it may be better to put OnVisible of FormScreen. You will also need the Value() function as ID is a number.

    If(
     !IsBlank(Param("ID")),
     Set(
     varID,
     Value(Param(ID))
     )
    )

     

  • VV-05122257-0 Profile Picture
    55 on at

    Thank you all, it works to use Value() function.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard