CheckBox Approvals - Workflow

ar1
Kilo Sage

Hi Team,

We have a requirement regarding checkbox approval:

we developed one catalog item and the catalog have 5 checkbox variables. and for each checkbox different users approval are there like below:

1. checkbox1 - A user approval

2. checkbox2 - B user approval

3. checkbox3 - C & D users approvals

4. checkbox4 - E & F users approvals

my requirement is :

if an end user select checkbox1 and chekbox3 in that case "A user" must approve and "C & D users" any one approval is enough no need to wait for both approvals.

ANY help would really appreciated...

thanks in advance..

Note: We used workflow and currently the ticket is waiting for all the user approvals [A , C , D] 

 

1 ACCEPTED SOLUTION

After both the Approved activity before set Value you have to use join acitvity 

like both the ends of approved will connect to join activity and then it will set the value to approved.

 

-------------Approval ------------  Join -------SetValue

------------Approval --------------

The join activity wait for the completion of all the paths.

Mark helpful and correct if it helps.

Thansk,

CB

View solution in original post

17 REPLIES 17

Hi Hemath,

Please  check below workflow.

1. IF activity -> Checkbox1

var nachf = current.variables.checkbox1; [checkbox1 - variable name]

answer = ifScript();
function ifScript()
{

if(nachf == 'true')
{
return 'yes';
}
return 'no';
}

In Approval activity -> we select the "A" user name in  user field.

and wait for condition -> ANyone to approve

2. IF activity -> Checkbox2

var cb = current.variables.checkbox2; [checkbox2 - variable name]

answer = ifScript();
function ifScript() 
{

if(cb == 'true')
{
return 'yes';
}
return 'no';
}

In Approval activity -> we select the "B" user name in  user field.

and wait for condition -> ANyone to approve

 

3. IF activity -> Checkbox3

var cd = current.variables.checkbox3; [checkbox3 - variable name]

var ar = current.variables.checkbox4; [checkbox4 - variable name]

answer = ifScript();
function ifScript() 
{

if(cd == 'true' || ar == 'true')
{
return 'yes';
}
return 'no';
}

In Approval activity -> we select the "c" and "D" user names in  user field.

and wait for condition -> ANyone to approve

 

Please tell me if this is not clear...

 

 

 

find_real_file.png

Hi @ar1 ,

 

My requirement is also same and i have replicated the flow. Getting the approval as I mapped but encountering the below error.

Aavi_0-1678727632558.png

Please help

vardini
Tera Contributor

if checkbox1 & checkbox3 - than A c D approvals... like based on combination selection require approval has to Triger.this is not working if user selecting multiple checkboxes approvals not working