How to get mandatory approvals from two people in a workflow and until the two of them approve, it should be 'Requested' and once both of them approve then only it should be 'No longer required'.

utkarsha_s
Kilo Expert

Hi Guys,

Let me know how to get mandatory approvals from two people in a workflow and until the two of them approve, it should be 'Requested' and once both of them approve then only it should be 'No longer required'. If the first person has approved, still it should be in Requested state until one more person approves and then no longer required.

How do I achieve this from a workflow ?

Thanks,

Utkarsha Saxena

1 ACCEPTED SOLUTION

Hi,


Try following code in approval activity of your workflow.



find_real_file.png




Raj


View solution in original post

26 REPLIES 26

rajmasurkar
Giga Guru

Hi,



If you are using   group with these 2 approvers you need to set Condition for approval in a workflow as follows



find_real_file.png



If you are using 2 separate approvers, you can create 2 Approval user activities back to back.



Raj


Hi Raj,



Suppose there are 8 approvers in any group for which approval is required and any two of them need to approve and once any two approves for everyone else in that list it should be 'No longer required'.



So if I put 'everyone to approve' in the workflow condition, won't that wait for all the 8 people to approve ? I can't put back to back approvals as those two people could be anyone from the list.



Thanks,


Utkarsha


Hi,



In that case, try the following



find_real_file.png



Raj


Okay thanks Raj. Can you tell me where to write this script and what it will contain ?



Thanks,


Utkarsha