Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Start a workflow using a javascript

noemielebaut
Level 1
Level 1

Hello, 

 

The objective is to create a technical workflow with a query box that selects specific workflows in status Paused or Finished. And then the idea would be to have a JS code which Start or Restart the workflows (probably using a loop, one workflow at a time). 

 

I would like to get the correct JS code to use. 

 

Can you help?

 

Thank you !

1 Accepted Solution
badr_eddine
Correct answer by
Level 4
Level 4

Hello, 

 

After generating the condition when your workflow needs to be restarted, you can use this JS code: 

xtk.workflow.Restart(id)

 

id : the id number of the workflow that you want to restart.

 

Regards, 

Badr.

View solution in original post

1 Reply
badr_eddine
Correct answer by
Level 4
Level 4

Hello, 

 

After generating the condition when your workflow needs to be restarted, you can use this JS code: 

xtk.workflow.Restart(id)

 

id : the id number of the workflow that you want to restart.

 

Regards, 

Badr.

View solution in original post