Hi all.
I have a workflow transition that transitions to itself. There is a screen where an agent can enter in some details and then it creates an object in Assets.
I want to control how many times this happens before the loop basically stops and the issue transitions to another status.
So if there is a variable with 6, it will loop through 6 times and then break out, is there any sort of post function or something I can use on in the workflow to reduce the counter to 0 or something, yes I am confused with this one!
Hi @Ste404
For this one, I would use a custom field that is hidden that counts the number of times the transition is executed. Essentially you will subtract 1 to it in the post-function of the transition that calls itself. You will have to figure out how the initial value is populated though.
I hope this helps.
Fabian
Can you do maths in the post function?! will have to dig deeper in there, I thought I checked out the options for that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may have to look into some workflow plugins in the marketplace (e.g. JSU, JMWE, JWT) are the easy ones to setup.
Regards,
Fabian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is disappointing there is no Do Until type looping in automations, something that has a TONNE of use cases.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.