- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2020 12:34 AM
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]
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2020 04:09 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2020 03:48 AM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2023 10:14 AM
Hi @ar1 ,
My requirement is also same and i have replicated the flow. Getting the approval as I mapped but encountering the below error.
Please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2024 07:07 AM
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