web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to wait for Patch ...
Power Apps
Unanswered

How to wait for Patch to finish before Navigate?

(0) ShareShare
ReportReport
Posted on by 56

In "OnSelect", I have something like this:

 

Patch(...);Navigate(...)

 

Issue is, some of my users reporting that their input was not saved. I suspect that it is because the app navigates before the patching could finish.

So: How should I revise my formula/my app to make sure that patching was finished before navigating away?

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @mychau 

    Please try the following,

    IfError(
     Patch(), Notify( "Error in Patch" ),
     Navigate()
    )

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • Inogic Profile Picture
    1,135 Super User 2025 Season 2 on at

    Hi @mychau ,

    You can follow the below steps and screenshots :

     

    Insert a Timer (make it invisible once done!)

    - Set the Duration of the Timer as you wish 

    - OnTimerEnd = Navigate([Screen])

    Inogic_2-1692350970689.png

    - Reset = true

    - Start = (Set a context variable, example: "navigate")

    Inogic_3-1692351600666.png

     

    Insert a Button 

    - OnSelect = patch([...]); UpdateContext({navigate: true})

    Inogic_5-1692351948266.png

     

    OnVisible of Screen:

    - UpdateContext({navigate: false})

     

    Inogic_4-1692351932787.png

     

    Thanks!

     

    Inogic Professional Services Division

    Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

    Drop an email at crm@inogic.com

    Services:  http://www.inogic.com/services/

    Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

  • ESG Profile Picture
    14 on at

    So, if I understand this correctly, this forces the system to wait for a response from the Patch before it either responds with an error message (in the event of a failure), or navigates to your next page (in the event of a success)?

  • mychau Profile Picture
    56 on at

    Yes, it should wait for the patch to finish before navigates to designated page

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard