Comments on: Percentage or Majority-based Workflow Approvals https://servicenowguru.com/graphical-workflow/approval-percentage/ ServiceNow Consulting Scripting Administration Development Tue, 28 May 2024 19:34:31 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Mark Stanger https://servicenowguru.com/graphical-workflow/approval-percentage/#comment-9428 Thu, 02 Mar 2017 22:30:28 +0000 https://servicenowguru.wpengine.com/?p=4697#comment-9428 In reply to Matthew Wright.

That use case is also easily accomplished. You just have to change the ‘counts.rejected’ piece to look like this…

if(counts.rejected == 1){
   answer = 'rejected';
}
]]>
By: Matthew Wright https://servicenowguru.com/graphical-workflow/approval-percentage/#comment-9427 Thu, 02 Mar 2017 22:19:31 +0000 https://servicenowguru.wpengine.com/?p=4697#comment-9427 What if any rejects? Can I get the additional script? I am using “Percentage-based approval with an ‘Approval – User’ activity”. If ANY one rejects the whole request is rejected.

]]>
By: Mark Stanger https://servicenowguru.com/graphical-workflow/approval-percentage/#comment-9426 Tue, 27 Dec 2016 17:56:31 +0000 https://servicenowguru.wpengine.com/?p=4697#comment-9426 In reply to Neeraj sharma.

Check out the ‘Making a specific person the key approver’ section in this Guru post…
https://servicenowguru.com/scripting/change-management-workflow-approval-scripts-servicenowcom/

]]>
By: Neeraj sharma https://servicenowguru.com/graphical-workflow/approval-percentage/#comment-9425 Tue, 27 Dec 2016 05:45:10 +0000 https://servicenowguru.wpengine.com/?p=4697#comment-9425 I want to do similar kind of thing, I want ‘CAB’ approval of user A mandatory if he approves other approvals no longer required or approval should continues until user A approves.
(user A is also a part of ‘Change manager’ group).

Can you please help
thanks in advance

]]>
By: Dave Edgar https://servicenowguru.com/graphical-workflow/approval-percentage/#comment-9424 Thu, 05 May 2016 10:57:23 +0000 https://servicenowguru.wpengine.com/?p=4697#comment-9424 Hi Mark

I need something very similar to Waqas i think.

My scenario is that I have approvals set at a value. So approval for <25K could come from one of two groups. Group one is level 2 users and group two are level 1 users (more important. So;
for the 1st group to grant approval 2 users must have approved
OR
for the 2nd group to have approved at least on members of the group must approve.

Can this be done? I'm sure it can with complex javascript, which is why i'm here.

Dave

]]>
By: Waqas Mahmud https://servicenowguru.com/graphical-workflow/approval-percentage/#comment-9423 Wed, 05 Mar 2014 21:40:54 +0000 https://servicenowguru.wpengine.com/?p=4697#comment-9423 Hello – how can I setup if my ECAB Approval-User has 4 Members (Lets say A, B, C, D)

If A approves then B, C, D go to No Longer Required

else if

B, C, D approve then A should go to No Longer Required

Any help on how to get started here?

]]>
By: Mark Stanger https://servicenowguru.com/graphical-workflow/approval-percentage/#comment-9422 Fri, 08 Nov 2013 15:29:14 +0000 https://servicenowguru.wpengine.com/?p=4697#comment-9422 In reply to Jeff Jefferson.

Thanks! I’m glad you got it working.

]]>
By: Jeff Jefferson https://servicenowguru.com/graphical-workflow/approval-percentage/#comment-9421 Fri, 08 Nov 2013 15:27:51 +0000 https://servicenowguru.wpengine.com/?p=4697#comment-9421 Thanks Mark, got it worked out, I was using the group script but should have been using the user one, Even though we are using groups, not all the groups approve or reject. Thanks for your wisdom and thanks for all the posts you do, People like me really appreciate you.

]]>
By: Mark Stanger https://servicenowguru.com/graphical-workflow/approval-percentage/#comment-9420 Fri, 08 Nov 2013 15:07:05 +0000 https://servicenowguru.wpengine.com/?p=4697#comment-9420 In reply to Jeff Jefferson.

I’m not sure what would cause that, but it sounds like you’ve probably got something else in our environment that is interfering. The scripts here don’t even reference anything named ‘Group ID’. You could identify if it was something in your config or something in ServiceNow by setting the same thing up in a ServiceNow demo instance to test.

]]>
By: Jeff Jefferson https://servicenowguru.com/graphical-workflow/approval-percentage/#comment-9419 Fri, 08 Nov 2013 13:56:17 +0000 https://servicenowguru.wpengine.com/?p=4697#comment-9419 In reply to Mark Stanger.

OK tried this script but it errors out saying Group ID not defined, any thoughts?

]]>