- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2022 08:53 AM
I have a notification that triggers when a user leave a comment on hr case and would the caller and watchlist know.
However if the event creator is the caller or one of the watch list he/she should not receive the notification.
The ''send to event creator '' is unchecked and I add the following BR but they would still receive the notification
Business Rule
if (current.caller_id != current.sys_updated_by)
gs.eventQueue('sn_hr_core_case.commented', current, current.caller_id);
I Also need to look into watchlist and not sure if I can have multiple gs.eventQueue in the script ( one for each user in the watchlist)
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2022 09:01 AM
Rez, sorry I did not get through your full question so in the BR you have to use the below condition I believe since current.caller_id gives sys_id of user but updated by contains user id.
if (current.caller_id.user_name != current.sys_updated_by)
gs.eventQueue('sn_hr_core_case.commented', current, current.caller_id);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2022 08:57 AM
Hi, open the notification and under 'who will receive' section uncheck 'Send to Event Creator'.
Mark my answer as HELPFUL / CORRECT if this help resolve your issue.
Regards,
Vamsi S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2022 09:00 AM
Hi Vamsi,
I did but they still get the notification

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2022 09:01 AM
Rez, sorry I did not get through your full question so in the BR you have to use the below condition I believe since current.caller_id gives sys_id of user but updated by contains user id.
if (current.caller_id.user_name != current.sys_updated_by)
gs.eventQueue('sn_hr_core_case.commented', current, current.caller_id);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2022 09:12 AM
Hello Rez,
Also please check if there is any other notification that is getting triggered when you are updating the HR Case. There may be some other notificaiton that is getting triggered which has event created checked on notification.
Please mark this helpful/correct, if it answer your question.
Thanks