Functional @mention on Workspace

SofiiaA
Tera Contributor

Hello, 
I am trying to adjust filter the users specifically for the Activity Stream @mention Feature on Workspace. I need to filter users by the next query: sys_class_name=sys_user^active=true. I have found resolution, which is working fine for Classic UI ONLY. I created a BR with condition: gs.getSession().isInteractive() and scrtipt:

 

(function executeRule(current, previous /*null when async*/ ) {
    if (gs.action.getGlideURI().toString().startsWith("api/now/form/mention/record/")) {
        current.addEncodedQuery("sys_class_name=sys_user^active=true");
    }
})(current, previous);

 

I also found that with URI for workspace: "api/now/v1/batch?" It is possible to do, but then it affects all other functional.

If there any way to add a filtering during Activity Stream @mention Feature on Workspace. 

0 REPLIES 0