cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SylvieLet17
Level 8

Using the Do Until Function

Hi all, 

 

I am trying to build a flow that emails an approver, then waits until a field on the item is changed to "Published"

 

I'm trying to figure out how to use a Do Until function, but I can't get it to do what I want. 

In SharePoint Designer I would use a Wait for Field Change in Current Item

 

Here is my Flow configuration:

error1.png

But it does not pause. The field is still not equal to Published, and yet I get that email and the workflow completes. 

 

help?


Sylvie

3 REPLIES 3
Community Support Team
Community Support Team

Re: Using the Do Until Function

Hi @ SylvieLet17,

 

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

Could you please share more details about the sharepoint list and the “status” column?

How long or how many times would the “Do until” run in your flow?

 

I have made a test and the “Do until” would work well on my side, the screenshot of the sharepoint list as below:

1.png

The “status” column is a choice type column with value “published” and “unpublished”.

The screenshot of my flow as below:

2.png

The first value of the “Do until” would fill in the “status Value” dynamic content of the “Get item” action.

The default limits of “Do until” is only run 60 times and an hour, you could click the “change limits” of the “Do until”, leave the “Count” field blank, and set the value in the “Timeout” field, the PT720H in my flow means the “Do until” would run 30 days before times out, you could refer to link below to learn more about the ISO 8601 data:https://en.wikipedia.org/wiki/ISO_8601 

 

When an item is created and the “status” column is “unpublished” and the column is still not equal to published, the flow would keep running  “Do until” 30 days before times out.

3.png

When an item is created and the “status” column is “unpublished” and update the column to published after some minutes, the flow would run successfully as below.

 

 4.png

 

 

 

 

 

Regards,
Alice Zhang

Re: Using the Do Until Function

Hi @SylvieLet17,

 

We can use pausing for seconds/minutes in flow in below manner:

 

1.select "Initialize Variable" from actions and name it

2. select type of this variable string

2.Select value as "addSeconds" from expression

3.expression/formula for addSeconds should be like this:

      addSeconds(utcnow(), 20) 

4.Select "Delay Until" from actions

5. Add this varaible in delay until.

6.Find Image for details , hope this helps:

Pausing.pngRegards,

Chandrashekhar, Emerson, Pune , India.

Highlighted
BLHubbard
Level: Power Up

Re: Using the Do Until Function

Change Limits. Perfect. I was trying to figure out why it wasn't running 70 times. Thank you!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 175 members 5,039 guests
Please welcome our newest community members: