Filter @mention on CSM workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 04:35 AM
Hey everyone,
I have a BR that filters the mention's users on work notes on the basic regular Case form.
This filtering is required for the same field on the CSM Configurable Workspace, but when trying to see if that BR is triggered on the workspace, this doesn't seem to be working.
BR is written as such:
(function executeRule(current, previous /*null when async*/ ) {
try {
if (gs.action.getGlideURI() != '') {
if (gs.action.getGlideURI().getMap() != '') {
if (gs.action.getGlideURI().toString().startsWith('api/now/form/mention/record/'))
current.addEncodedQuery("active=true^roles=snc_internal");
current.addActiveQuery();
}
}
} catch (errObj) {
gs.error('Global_Set_Filter_Mention-' + errObj);
}
})(current, previous);
Filter @mention on CSM workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 04:46 AM
I think you will need to apply this through the UI builder, because the workspace interacts differently. If you add logging to it, do you even get any logs?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 12:31 AM - edited 06-04-2024 12:32 AM
There are some logs whenever I add them to the business rule, but nothing seem to be related to the mention feature, plus, none of the logs show whenever the feature is used (querying the user's table actively).
Is the Activity component customizable? is there any configuration possible using OOTB tools (e.g. UI Builder...) to achieve that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2024 07:31 AM
Hi Ariel, Have you found a resolution in this case?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2024 03:40 PM
Hi Sofia!
After reaching out to servicenow's support and trying to figure out ways to implement it we currently rollbacked this to Ootb meaning no filter applied.
By using that business rule query you have a lot of power controlling who is querying a table and what records are returned. but since we were asked to limit this to mentions, and also it must work both on workspace and legacy view, I could'nt distinct requests in workspace like I could in legacy's view