Recursive Actions

Hi all. I am trying to achieve logic where I need to recursively iterate through a dataset, looking for parents. If I do find a parent, I need to remove it from a runtime dataset. I don’t know the depth of the parent structure, so it needs to be recursively executed.
I tried to call the same action from the action itself, but with other action parameteres, but I got the following error message:
“Cannot run action - Another instance of this action is already running”.
It is possible to achieve recursiveness using a javascript function, but I am unable to manipulate data from the inside of such a function.
Any suggestions on have to achieve this would be appreciated :slight_smile:

Øystein

You should be able to tick “Parallel Execution” in the Action Properties. It is the blue cog in the top-right of the action editor.

This will allow you to trigger an action that is already running.

// Erik

Great. That works perfectly… Thanks :slight_smile:

1 Like