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 / 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,291 Moderator 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard