Workflow approval for check boxes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2024 07:05 AM
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