The CreatorCon Call for Content is officially open! Get started here.

Approval Triggering for Inactive user

Vasuki
Tera Contributor

Change ticket approvals are being generated for the inactive user, It should trigger for only active users

It is happening for Manager approver and the CAB approvers.

Please help me where I need to put the condition as active=true.

 

6 REPLIES 6

Hi ,

 

From Workflow

Service_RNow
Mega Sage

HI,

You can have before insert business rule on sysapproval_approver table

Condition: current.approver.active.toString() == 'false'

Script:

(function executeRule(current, previous /*null when async*/) {

    // Add your code here

current.setAbortAction(true);

})(current, previous);

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy.

Thanks,

RS