start workflow multiple times on same record

Luuk Vonk
Tera Guru

Hi,

I have a workflow that needs to run every time the record state is put to open. I added the condition state = open, but then it only starts the first time. If the ticket is closed and put back to open it does not start a workflow again.

For your information the record is from a standalone table.

Thanks,

Luuk

1 ACCEPTED SOLUTION

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Not sure the reason why you want to open a closed ticket, but.. is there any attribute you can check so you don't need to finish the workflow until that has happen. meaning that if the state goes back to open, you can for example do a rollback to the activity you want and start right over again.



//Göran


View solution in original post

3 REPLIES 3

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Not sure the reason why you want to open a closed ticket, but.. is there any attribute you can check so you don't need to finish the workflow until that has happen. meaning that if the state goes back to open, you can for example do a rollback to the activity you want and start right over again.



//Göran


Hi Goran,



Thanks for the fast reply. Don't ask for the reason 😉



I added an extra attribute and a rollback and now it works. Sometimes your I'm thinking the wrong way...



Luuk


Or, on the Workflow Properties form go to the burger menu -> Configuration -> Form Layout.

  • Find the field Run Multiple.
  • Add it to the form.
  • Check Run Multiple.
  • Publish your workflow.

Boom.

Your workflow will now run every time the proper conditions are true, even if there's a prior workflow context.

Just make sure the previous workflow context is finished.

It can get reeeeeally messy (like, baby with a bowl of spaghetti and tomatosauce messy) if you don't make sure your previous workflows context finish properly, before you launch the same workflow again.