cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PytByt
Post Prodigy
Post Prodigy

How to Patch with Timer

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

 

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

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.

 

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

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.

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

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. 

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (4,150)