Is there a way to count the number of times a bot performs an action?

I have a bot that loops through an action constantly. I’d like to be able to count the number of times it performs that action and have it report that number to me when the bot has completed it’s cycle.

Is there a method to do this easily?

@nedenfield
how is the iteration realized, with a for each, while loop?

There is a series of flow decisions that may prevent it from reaching the activity, once it has reached that activity I need it to count. I need to know the number of times it reaches that activity.

@nedenfield

then simplest approach could be to have a variable in place that will be incremented once the activity is reached/passed. Ensure that the variable scope is so wide as you need for later working with this count. Maybe this count would also be used in arguments in case of workflow invokes

1 Like