Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

CapaJ
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?