How to stop notification going to the event creator

rez4
Kilo Guru

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)

 

1 ACCEPTED SOLUTION

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);

View solution in original post

4 REPLIES 4

Vamsi Sreenivas
Giga Guru

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

Hi Vamsi,

 

I did but they still get the notification

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);

Mahendra RC
Mega Sage

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