How do you prevent a User from Approving Own Request (i.e requested_for = Approver)

sdarity1
Tera Contributor

How do you prevent a User from Approving Own Request (i.e. requested_for = Approver).

6 REPLIES 6

CapaJC
ServiceNow Employee
ServiceNow Employee

Nice one. Sorry my condition was bad! getRecordClassName() is a GlideRecord method, not a GlideElement method. current.sysapproval.getReferenceTable() might have worked, but your solution appears just as good (and more readable!).


angelawells
Giga Contributor

This doesn't quite give me the result I'm look for.  I'm using a workflow and if the person who is the requestor tries to approve he would get the message.  This gives me the message at the top once I submit the initial change - should only happen if I try to approve.  Any way to change it?