Stibo STEP: What is the javascript to initiate a node/item in workflow. Don't want to use default wizard screen as I want to just initiate children of the node and not the node itself.
Asked
Active
Viewed 892 times
0
-
Welcome to Stack Overflow! You can take the [tour] first and learn [ask] a good question and create a [mcve]. That makes it easier for us to help you. – Katie Jan 13 '17 at 16:40
1 Answers
2
You can initiate a node into a workflow thus (and it's always wise to check if it's already in there first):
var wfID = "ID.of.workflow";
if (!node.isInWorkflow(wfID)) {
node.startWorkflowByID(wfID, "Put workflow comment here");
}

Sid Holland
- 2,871
- 3
- 27
- 43
-
@PIM Glad it worked. Feel free to mark this as the answer (and maybe upvote :) – Sid Holland Feb 17 '17 at 06:31