How @User mention works in servicenow

tomaslindev
Mega Guru

Hello everyone,
Currently users receive a notification every time a comment is left on an incident or ritm (this one is a cash register), the fact is that when mentioning a user with @User they receive the notification of the mention and the comment. The cash register notification is triggered through an event associated with a Business Rule called "incident events" what I don't know is how the mention works in servicenow and how to filter it to cancel the sending of the cash register notification in case the user has already been mentioned.
Any ideas?
Thank you very much and best regards.

1 ACCEPTED SOLUTION

Mark Manders
Mega Patron

@mention has it's own notification (Activity Stream @Mention Email) and runs on the 'live_notification' table. Your comment is triggered from the task record, so these are two separate notifications that don't cancel each other out. 

The only way you (maybe) can prevent this, is by using an advanced condition on the 'comment' notification to validate if it starts with @ and the name is the same as the user that is receiving the email, but that's tricky, because it really is the name field that is shown in the comment. 
Just leave it as is and the work instruction should be that users already part of the ticket, shouldn't be used as 'mention' since you already email them. Solving people problems with technology isn't always the best thing.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

View solution in original post

2 REPLIES 2

Mark Manders
Mega Patron

@mention has it's own notification (Activity Stream @Mention Email) and runs on the 'live_notification' table. Your comment is triggered from the task record, so these are two separate notifications that don't cancel each other out. 

The only way you (maybe) can prevent this, is by using an advanced condition on the 'comment' notification to validate if it starts with @ and the name is the same as the user that is receiving the email, but that's tricky, because it really is the name field that is shown in the comment. 
Just leave it as is and the work instruction should be that users already part of the ticket, shouldn't be used as 'mention' since you already email them. Solving people problems with technology isn't always the best thing.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Thank you very much for your response @Mark Manders ,
I didn't really like the idea of ​​having to implement this and I didn't see any apparent reason for it, as you yourself say. It's worse to implement it than to make good use of the mention.