If "Requested for " and same requested for if member of the group approval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 07:24 PM
Hi Team ,
can any one please help me in this requriemnt .
If "Requested for " and same requested for if member of the group approval of the same catalog then requested for user shouldn't be able approve the request instead it should abort with some error message.
Please provide correct script or BR or Flow steps to achieve this snieriao , i have already pasted in communtiy , not working ,
can any one please provide correct scirpt . with testing results with screenshots for better understanding ,
NOTE - our requirment is
If "Requested for " and same requested for if member of the group approval of the same catalog then requested for user shouldn't be able approve the request instead it should abort with some error message.
Please provide configuration screenshots .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 08:29 PM
you can use before insert BR on sysapproval_approver table and check this and abort the record insertion
what did you start with and where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 08:44 PM
Hi @Ankur Bawiskar ,
I have configured like this
could you please provide me the correct script for my requriment .
If "Requested for " and same requested for if member of the group approval of the same catalog then requested for user shouldn't be able approve the request instead it should abort with some error message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 09:44 PM
don't use condition to check the approver
In script just get the RITM sysId and query and get the Requested For and match it against current.approver
then stop the record
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 10:18 PM