Solved

Loop counter in Workflow

  • 16 April 2019
  • 1 reply
  • 67 views

Badge +5

Hello All,

I have a workflow with a loop. I want to count the iterations of the loop and report the number of times the loop ran.

 

I have a variable in my workflow to track the count. I can set an explicit value for my variable. But I am not able to set the value using a simple additions (e.g.  Count = Count + 1).

 

I've even tried assigning the current count to another variable and then adding 1 to the other variable without success.
e.g. 
Count2 = Count

Count = Count2 + 1

 

Is there a trick to doing simple math and assinging the result to a variable in a workflow?

 

Thanks,

-tomas

 

 


15548iA369D8FD4770F6F4.jpg

icon

Best answer by dadkind 16 April 2019, 23:37

View original

1 reply

Badge +5

I found my answer.

There is an inline function called "Formula" into which I can type a formula to be evaluated by the workflow.

Here I could specify "Counter + 1" and assign it back to "Counter".

 

Reply