New tab customization in agent workspace (chrome_tab)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2025 04:12 AM
Hi All,
I have two different set of audience for service operation workspace if audience abc logged in to the instance he should see only new interaction tab and if xyz audience logs in then they should see only new change and new incident not new interaction.
I have wrote this in chrome tab value
{
"contextual": [
"record",
"kb_view"
],
"newTabMenu": [
{
"label": {
"translatable": true,
"message": "New Incident"
},
"routeInfo": {
"route": "record",
"fields": {
"table": "incident",
"sysId": "-1"
},
"multiInstField": "sysId"
},
"condition": {
"script": "var groups = ['one Help desk', 'one help desk - quality check', 'one help desk - specialist', 'one help desk - sap', 'one help desk - teamleads']; for (var i = 0; i < groups.length; i++) { if (GlideUser.isMemberOf(groups[i])) return false; } return true;"
}
},
{
"label": {
"translatable": true,
"message": "New Change Request"
},
"routeInfo": {
"route": "create-change-request-page",
"fields": {},
"multiInstField": ""
},
"condition": {
"script": "var groups = ['one Help desk', 'one help desk - quality check', 'one help desk - specialist', 'one help desk - sap', 'one help desk - teamleads']; for (var i = 0; i < groups.length; i++) { if (GlideUser.isMemberOf(groups[i])) return false; } return true;"
}
},
{
"label": {
"translatable": true,
"message": "New Interaction"
},
"routeInfo": {
"route": "record",
"fields": {
"table": "interaction",
"sysId": "-1"
},
"multiInstField": "sysId"
},
"condition": {
"script": "var groups = ['one Help desk', 'one help desk - quality check', 'one help desk - specialist', 'one help desk - sap', 'one help desk - teamleads']; for (var i = 0; i < groups.length; i++) { if (GlideUser.isMemberOf(groups[i])) return true; } return false;"
}
}
],
"maxMainTabLimit": 10,
"maxTotalSubTabLimit": 30
}
in above script when I used applies to :["audience sys id"] it didn't work so I tried with group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 06:20 AM
I already informed that tab cannot be shown/hidden based on group membership or any condition
It's either shown/hidden.
You need to create table.None CREATE ACL and check that
If user satisfies that ACL the tab button will be seen
something like this in advanced script
answer = gs.getUser().isMemberOf('Group ABC');
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 06:55 AM
this acl will block create access in other places as well right like from platform etc?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 07:08 AM
getting above error, kindly assist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2025 06:49 AM
you should create the ACL on global scope as that table is in global scope
Yes it will impact other places as well
Try to use this advanced script to see if it can determine if this is SOW
var index = gs.action.getGlideURI().toString().indexOf('/now/sow');
if(index != -1) // if this is SOW then hide
answer = false;
else
answer = true;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 04:58 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader