cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Delay and do until action for notifications

Hello,

I'm building an approval flow where I would like to send a notification if there was no action after three days. After the third day I would like to send a notification every day.

For the testing purposes, I've created a simple flow:

  1. Start an approval
  2. Delay for 1 minute
  3. Send a notification every minute until the document is approved or rejected

How to configure Do until action so that it sends one email every minute?

If I set Count = 1 and Time out = PT1M the flow will send me one email in one minute and resume.

If I set Count =60 and Timeout = PT1M the flow will send me 60 emails in one minute and then resume.Screenshot_062618_083423_AM.jpg

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Frequent Visitor

Sorry for the late reply. 

@DevendraV thank you very much for the link to your post it helped me to resolve my issue.

Here is my flow. When an item is creted start two parallel actions:

1.1. Start an Approval

1.2 Terminate flow as succeded after approval or rejection. This is required to stop parallel action.beginning.jpg

 

 

 

 

 

 

 

 

 

 

2.1 Delay  3 days (1 minute for testing)

2.2. Do until Approva status does not contain Pending. Important! Approval status is outcome from Get item 2.

Do until.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Limits: Count 30, Timeout PT30D - to run for 30 days.

2.2.1 Send notification

2.2.2 Second delay for 1 day ( 15 seconds for testing)

2.2.3 Get item. This step is important to check the status of item every day and keep the loop runing until the condition is met: Approval status does not contain Pending. 

 

Thanks everyone for your assistance.

View solution in original post

9 REPLIES 9
Community Support
Community Support

Hi @YSK,

 

The Count field in Do until means the run max count of Do until,If you don't want to specify the do until run times, you should leave the Count field blank.

The Timeout field in Do until means the run max timeout,

if you would like the timeout of Do until to be 1Month,you could set the value below in the Timeout field:

PT1M

 

if you would like the timeout of Do until to be 15 Day,you could set the value below in the Timeout field:

 

PT15D

 

You could refer to link below to learn more about the ISO 8601 format:

https://en.wikipedia.org/wiki/ISO_8601#Durations

 

 

Best regards,

Alice

 

Hi @v-yuazh-msft

Correct me if I'm wrong,  PT1M is one minute tiemout, but P1MT is a one month period. 

 

I've just tested what you proposed, Count = blank, Timeout = PT1M, as result I've got more than 100 emails over a minute. 

If I set Count =3 and Timeout = PT1M the flow will send me three notifications at once and resume as succesfull. 

So, the question is still open, how to configure do until in the way that it sends one notification every minute (hour/day)? Let say I want to send 3 notifications, so I set Count =3. Now, I want them to arrive into my inbox with a minute delay between them. Is it possible?

 

Appreciated your time and help. 

Hi @YSK,

 

Please add a "Delay" action under the send email notification action.

 

Please configure The Do until as below:

Capture.PNG

 

 

Best regards,

Alice

 

 

 

@YSK, have a look at this thread where delay activity was implemented.

 

https://powerusers.microsoft.com/t5/I-Found-A-Bug/Do-Until-question/td-p/24576/page/2

Not sure why but it still doesn't work for me as I would expect.

I've done exactly as per your post, my flow iterated only once and finished with status Succedded. It didn't wait another minute to send another notification. 

Screenshot_062718_123906_PM.jpg

Hi @YSK,

 

The screenshot show that your Do until only run one time.

Capture.PNG

Please leave the Count field in the Do until blank.

 

 

 Capture.PNG

 

 

Best regards,

Alice

Hey, @YSK

Have you had an opportunity to apply @v-yuazh-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify! Thank you for being an active member of the Flow Community!

 

-Gabriel

Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager
Power Platform Communities
Frequent Visitor

 
Frequent Visitor

Sorry for the late reply. 

@DevendraV thank you very much for the link to your post it helped me to resolve my issue.

Here is my flow. When an item is creted start two parallel actions:

1.1. Start an Approval

1.2 Terminate flow as succeded after approval or rejection. This is required to stop parallel action.beginning.jpg

 

 

 

 

 

 

 

 

 

 

2.1 Delay  3 days (1 minute for testing)

2.2. Do until Approva status does not contain Pending. Important! Approval status is outcome from Get item 2.

Do until.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Limits: Count 30, Timeout PT30D - to run for 30 days.

2.2.1 Send notification

2.2.2 Second delay for 1 day ( 15 seconds for testing)

2.2.3 Get item. This step is important to check the status of item every day and keep the loop runing until the condition is met: Approval status does not contain Pending. 

 

Thanks everyone for your assistance.

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (18,850)