Disable @mention in activity steam

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2025 08:35 AM - edited 05-08-2025 08:48 AM
I tried to follow How to Disable Activity Stream Mentions in Helsinki but is is not working for me. As soon as you type in the @ symbol in work notes or comments it is still querying the users table. I used log statements and I can see that is is going into the if statement in the BR but its like it is skipping the addNullQuery. Any ideas on why this is happening?
Correction: It is working unless you try to mention someone associated with the task. For example I'm testing with an incident. If I mention either the caller or the assigned to there name still appears. How do I prevent that as well?
(function executeRule(current, previous /*null when async*/ ) {
try {
if (GlideTransaction.get().URL.startsWith('/api/now/form/mention/record/')) {
current.addNullQuery("sys_id"); //All records have a sys_id so we are filtering out all records
}
} catch (e) {
}
})(current, previous);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2025 12:39 AM
- Users associated to record are stored client side when the form is loaded.
- The api call /api/now/form/mention/record/ is only to fetch remaining users and on demand when we start typing after @
- The preloading of users associated to record are processed by the system processor
> Goto sys_processor table and filter with name 'NGListHistoryDirectProcessor' - And as suggested by @Chaitanya ILCR it is working by clearing out the NOW.recordMembers object
- To check what it stores you can do below :
a) Open an incident form
b) Open browser console (F12)
c) Type this and click enter "Object.values(NOW.recordMembers).map(u => u.name)"
d) This will print all names of the users associated to record which are preloaded for @.
Regards,
Sumanth

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2025 08:36 AM
I created an idea for this to have an OOB way to be able to disable this.