Block delegation for a particualar scope

rishabhkata
Tera Contributor

In 'sys_user_delegate' table there are below checkboxes:

1. Approvals

2. Assignments

3. All Notifications

4. Meeting invitations

5. HR Approvals

6. HR Notifications

Whenever a user checks HR Approvals and HR Notifications in the record then only HR specific notifications and approvals should trigger to that user (I have already implemented this using Granular delegation), Now I want to block sending HR specific notifications and approvals whenever a user selects "Approvals" and "All Notifications". Can anyone help in implementing this?

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@rishabhkata 

OOTB this table doesn't have HR Approvals and HR Notifications?

Did you add those 2 new fields or they came as part of some plugins?

Please share what have you done so far, script, screenshots etc

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar Yes you are correct those are not OOTB, I have created them in order to implement the functionality. I have created a Before BR in order to add delegates to HR specific notifications, and I have used Granular delegation for HR Approvals. I just want to know how can I stop users from getting added as delegate (for HR specific Approvals and Notifications) when user selects "Approvals" and "All Notification" checkboxes.

@rishabhkata 

I don't think you can stop it for specific.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @rishabhkata 

You're mixing two concepts:

  • Delegation

  • Granular delegation

Out of the box (OOTB), if you select "Approval" and "All Notifications," it triggers everything. You can't customize it according to your needs; it works like an "all or none" approach.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************