Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

New tab customization in agent workspace (chrome_tab)

Kiruthika J
Tera Contributor

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.

KiruthikaJ_0-1746184232343.png

 



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.

10 REPLIES 10

@Kiruthika J 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader