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

Do until Expression

I'm trying to create a flow that will send a reminder email daily once the due date has passed until the approval has been complete.  I was told to use a Delay and Do until function, but I'm having issues writing the expression I need.  I think it is something like: 

@equals(variables('ApprovalComplete'), 'Yes') AND @less(body('Update_Status_to_Pending_Approval')?['DueDate'], Today())

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Do until Expression

@Mickala 

Below you'll see some screen shots demonstrating one way to approach your issue.

A couple of notes:

  • I am using the convert time zone action as an easy way to format the time properly - I could have done this in an expression (but I am lazy...)
  • I have the delay set to 1 minute for testing - you'll want to set it to one day
  • You'll want to change the limits on the loop to a value up to 30 days. If you don't, it will time out in 1 hour

FlowDueDate1.jpgFlowDueDate2.jpgFlowDueDate3.jpgFlowDueDate4.jpg

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Do until Expression

@Mickala 

Below you'll see some screen shots demonstrating one way to approach your issue.

A couple of notes:

  • I am using the convert time zone action as an easy way to format the time properly - I could have done this in an expression (but I am lazy...)
  • I have the delay set to 1 minute for testing - you'll want to set it to one day
  • You'll want to change the limits on the loop to a value up to 30 days. If you don't, it will time out in 1 hour

FlowDueDate1.jpgFlowDueDate2.jpgFlowDueDate3.jpgFlowDueDate4.jpg

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Community Support Team
Community Support Team

Re: Do until Expression

Hi @Mickala ,

 

Could you please explain more details about your scenes and your requirement?

Could you please share more details about the ApprovalComplete and DueDate column? What are the type of them? Is it a sharepoint list column?

Could you please share a screenshot of the configuration of your flow?

 

Please explain more details so we would try to provide a proper workaround for you.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Mickala
Level: Powered On

Re: Do until Expression

This is great and so much easier than trying to figure out an expression.  Thank you!


@ScottShearer wrote:

@Mickala 

Below you'll see some screen shots demonstrating one way to approach your issue.

A couple of notes:

  • I am using the convert time zone action as an easy way to format the time properly - I could have done this in an expression (but I am lazy...)
  • I have the delay set to 1 minute for testing - you'll want to set it to one day
  • You'll want to change the limits on the loop to a value up to 30 days. If you don't, it will time out in 1 hour

 

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (7,939)