Flow Designer 'Do the following until'

slehm
Kilo Contributor

Hi everyone, hopefully this is a simple one. I am trying to use the 'Do the following until' flow to create tasks on a RITM. I've created a Service Catalog item that a customer can use to select the number of tasks to create with the numeric scale, which according to ServiceNow returns an integer. I've also created a counter that adds one to a variable every time the 'Do the following until' runs. When I try to do the until condition I input the data pill from my counter variable and use the is condition and compare it to my number_of_tasks variable but it doesn't seem to work even though both are integers in the flow. How do I get the condition to compare integers and not strings? Thanks

1 ACCEPTED SOLUTION

Jon23
Mega Sage

Hi @slehm 

Instead of using a counter variable, do a count of the task records created until tasks created is equal to the number of tasks requested. 

So your flow would look something like this:

find_real_file.png

 

 

View solution in original post

3 REPLIES 3

Jon23
Mega Sage

Hi @slehm 

Instead of using a counter variable, do a count of the task records created until tasks created is equal to the number of tasks requested. 

So your flow would look something like this:

find_real_file.png

 

 

slehm
Kilo Contributor

I didn't realize this was an option and it seems to be the solution for my problem. Thank you for responding!

What if the task records were never created? Would it result in a thread lock or affect the system's performance?