Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

Workflow approval for check boxes

vardini
Tera Contributor

Hi All,

 

Anyone help on requirement in catalog workflow -

1. checkbox1 - A user approval

2. checkbox2 - B user approval

3. checkbox3 - C & D users approvals

4. checkbox4 - E & F users approvals

5. if checkbox1 & checkbox3 - than A c D approvals... like based on combination selection require approval has to triger


I tried this code but not working

var answer = [];

if(current.variables.checkbox1 = true){
answer.push("PASS User A SYSID HERE");
}
if(current.variables.checkbox2 = true) {
answer.push("PASS User B SYSID HERE");
}
if(current.variables.checkbox3 = true) {
answer.push("PASS User C SYSID HERE");
answer.push("PASS User D SYSID HERE");
}
if(current.variables.checkbox4 = true) {
answer.push("PASS User E SYSID HERE");
answer.push("PASS User F SYSID HERE");
}

 

i tried same like  https://www.servicenow.com/community/developer-forum/checkbox-approvals-workflow/m-p/1844590/page/2  but not working. 

kindly help me correct code

0 REPLIES 0