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-08-2025 10:02 AM
As I check the transaction logs, API call to
/api/now/form/mention/record/
is happening only for the user records that are not associated to record.
Caller is being shown even before the transaction is made in the backend and its not a server side call for sure.
Haven't found a way to stop that client side 😞
Please let us know if you are able to tweak it.
Regards,
Sumanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2025 10:47 AM - edited 05-08-2025 11:49 AM
Hi @Brian Lancaster ,
try updating user query BR with below script
(function executeRule(current, previous /*null when async*/) {
if(gs.action.getGlideURI().toString().contains('api/now/form/mention/record/')){
current.addNullQuery('sys_id');
}
})(current, previous);
found it create a global or task level onload client script with inherited as true as mentioned above
you can follow the same in any table where you want this to be disabled
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2025 01:00 PM
The client script does not work. I have tried it with both isolate script check and uncheck. I also tried it with a brand new incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2025 01:10 PM
Hi @Brian Lancaster ,
it's working in my PDI
script used
function onLoad() {
//Type appropriate comment here, and begin script below
NOW.recordMembers = {};
}
do you see any console errors?
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya