cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
YSK
Level: Powered On

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
Highlighted
YSK
Level: Powered On

Re: Delay and do until action for notifications

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 Team
Community Support Team

Re: Delay and do until action for notifications

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

 

YSK
Level: Powered On

Re: Delay and do until action for notifications

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. 

Community Support Team
Community Support Team

Re: Delay and do until action for notifications

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

 

 

 

DevendraV
Level 8

Re: Delay and do until action for notifications

@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

YSK
Level: Powered On

Re: Delay and do until action for notifications

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

Community Support Team
Community Support Team

Re: Delay and do until action for notifications

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

Administrator
Administrator

Re: Delay and do until action for notifications

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
Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!
Yulia
Level: Powered On

Re: Delay and do until action for notifications

 
Highlighted
YSK
Level: Powered On

Re: Delay and do until action for notifications

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,549)