Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to send notification out when a sys_user_group "ABC" gets a new member or when a member leaves

Nathan Okh
Mega Sage

I have a requirement that I'd like to build out in Flow Designer or any way that makes sense (an event for example). When a new or existing user is added to group "ABC" it will send a notification out, and when an existing user is removed from group "ABC" it will send a different notification.

Can anyone help?

7 REPLIES 7

yes, notification has condition ( and script code with current object ) but there is no action parameter similar to BR, so keep the logic separate from notification and use the BR. You can write after delete BR with applied condition on group ABC and trigger he event for notification.


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Hi @Nathan Okh 

 

Only way get the previous count and compare with current count. 

*************************************************************************************************************
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]

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

AshishKM
Kilo Patron
Kilo Patron

Hi @Nathan Okh

Write an after update BR and check the record if current record exist in the table. If exist [added] then trigger an event and event will evoke the notification and if record doesn't [remove] exist then trigger other one event for notification.

 

-Thanks,

AshishKMishra


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution