Count Do-Until loop in Flow designer

Utpal Dutta
Tera Guru

Hi Community Memebers,

I'm stuck with a silly thing in Flow Designer. I have an email step inside a Do - Until loop. In email subject I want a counter like "Reminder 1" - When 1st loop runs, Then "Reminder 2" when 2nd time that loop runs. Basically I want a Do-Until loop counter. When the loop ends the counter should reset.

Please help me with this! Screenshot is attached for the reference.

 

UtpalDutta_0-1676471235447.png

 

1 ACCEPTED SOLUTION

Hi @Utpal Dutta,

 

What @Elijah Aromola was suggesting is this (you can either count up or down):

Count down:

  1. Create a flow variable
  2. Set the flow variable with the targeted count
  3. Add your do the following until logic
  4. Specify until as '<flow variable> IS 0' OR 'status is up'
  5. Add logic 'Wait for time'
  6. Add the Send Email (consider using Send Notification instead) action within the do until logic
  7. Add the Set Flow Variables flow logic next
    1. Set the variable to itself
    2. But apply a Transform function to substract 1

Example screenshot:

LisaHolenstein_1-1676996344360.png

 

Hope this helps!

 


Please mark as solved if this answered your question.



Have questions about the Now Platform? Join our bi-weekly Platform Academy.

View solution in original post

4 REPLIES 4

Elijah Aromola
Mega Sage

You should be able to create a flow variable for this and increment it at the end of your do loop. 

I tried creating a flow action with Input and Output variables but it seems to be not working. If you know how to do it then can you explain the process?

Hi @Utpal Dutta,

 

What @Elijah Aromola was suggesting is this (you can either count up or down):

Count down:

  1. Create a flow variable
  2. Set the flow variable with the targeted count
  3. Add your do the following until logic
  4. Specify until as '<flow variable> IS 0' OR 'status is up'
  5. Add logic 'Wait for time'
  6. Add the Send Email (consider using Send Notification instead) action within the do until logic
  7. Add the Set Flow Variables flow logic next
    1. Set the variable to itself
    2. But apply a Transform function to substract 1

Example screenshot:

LisaHolenstein_1-1676996344360.png

 

Hope this helps!

 


Please mark as solved if this answered your question.



Have questions about the Now Platform? Join our bi-weekly Platform Academy.

Thank you, i was looking for this