Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

How to Patch with Timer

(0) ShareShare
ReportReport
Posted on by 943

Hi all..

 

I need to create something like this in sequences:

1. Patch Data 1

2. Set timer (30 second)
3. Patch Data 2

4. Set timer (30 second)

5. Patch Data 3

6. Set timer (30 Second)
7. ...

8, ...

and so on..


the problem is, i cant manage my timer. 

can anyone help me with the proper formula?

Thanks,

pytbyt

 

  • WarrenBelz Profile Picture
    WarrenBelz 145,495 on at
    Re: How to Patch with Timer

    Thanks @PytByt 

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. 

  • PytByt Profile Picture
    PytByt 943 on at
    Re: How to Patch with Timer

    Hi @WarrenBelz 

    Thanks for the reply. 

     

    That was exactly what i did! #lol 
    I've been creative in OnTimerEnd properties even though it was not beautiful. But it works just fine.

    Much obliged.
    pybyt

  • Verified answer
    WarrenBelz Profile Picture
    WarrenBelz 145,495 on at
    Re: How to Patch with Timer

    Hi @PytByt ,

    Sorry for the late replay. Use your own names for the items in blue

    You need one timer each for all but the last one - I will do four as per your specs below

    1. Patch Data 1 and set Variable1 in same code
    2. Timer 1 Start set to Variable1 - and Duration to 30000 (30 seconds)
    3. Timer 1 OnTimerEndPatch Data 2 and set Variable2 in same code
    4. Timer 2 Start set to Variable2 - and Duration to 30000 (30 seconds)
    5. Timer 2 OnTimerEndPatch Data 3 and set Variable3 in same code
    6. Timer 3 Start set to Variable3 - and Duration to 30000 (30 seconds)
    7. Timer 3 OnTimerEndPatch Data 4 (that is the end if this is the last one.)

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • PytByt Profile Picture
    PytByt 943 on at
    Re: How to Patch with Timer

    Hi @WarrenBelz 

    Thanks for the reply, 
    I still confused here since i haven't play with timer control, how exactly timer control do i need?
    And, do you have the example formula reference that i can refer to?

    Thanks,

    pytbyt

  • WarrenBelz Profile Picture
    WarrenBelz 145,495 on at
    Re: How to Patch with Timer

    Hi @PytByt ,

    Firstly, here is the Timer Control Reference - so I will go through a few of the things that will help you.

    Duration - that is easy so you new 30,000 milliseconds on each one.

    OnTimerEnd - you run your flow here

    Start - determines when a Timer starts. Set this to a Variable (vStart1 for the first one will do), then set the variable to true when you want the timer to start.

    UpdateContext({vStart1:true})

    So set the next Variable (vStart2) at OnTimerEnd after the Patch on the first one and continue as above with the next one.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard