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 / Navigate function - do...
Power Apps
Answered

Navigate function - does it stop subsequent code execution?

(0) ShareShare
ReportReport
Posted on by 74

Hi, Just a quick question that I couldn't find the answer to in the documentation here https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-navigate

 

When the Navigate function is called, is any further code execution in the currently executing enclosing function stopped? I.e. is it the equivalent of an "exit subroutine", or does the navigate happen, but the remaining code continue?

 

thanks, Mike

Categories:
  • eka24 Profile Picture
    20,925 on at

    Please show the code to explain further

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • MikeyMole Profile Picture
    74 on at

    Ok if I have the following code:

    If(cvar_my_bool = true,
          Navigate(my_other_screen);
    );

    Patch()
    DoSomeOtherStuff()

    Does the code highlighted in red get executed? or does execution stop at the Navigate call?

  • MikeyMole Profile Picture
    74 on at

    P.S. Assuming in my example that cvar_my_bool = true

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    No, it will not stop after navigation.

    Based on the structure shown, the Patch will execute even after navigation.

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • MikeyMole Profile Picture
    74 on at

    Excellent thank you!

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