Announcements
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
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.
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?
P.S. Assuming in my example that cvar_my_bool = true
No, it will not stop after navigation.
Based on the structure shown, the Patch will execute even after navigation.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 395 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 260 Most Valuable Professional