Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Service Operations Workspace New Tab Configuration for New Problem

LRhodes
Tera Guru

Hi all,

 

We're in the midst of moving away from Agent Workspace and over to Service Operations Workspace. One of the tasks I need to do is update the New Tab UI Action (the +) to allow for a New Problem record to be opened.

LRhodes_0-1739441461428.png

I've found where I need to be to edit this. Now Experience Framework > Experiences > Service Operations Workspace > Chrome tab.

I've tried to update the JSON copying what's in place for the other three options, however when I save this it breaks the workspace (the purple menu disappears completely, as below). So clearly I'm not doing something right!

 

LRhodes_1-1739441613941.png

Here's the JSON I'm using. Anyone tried implementing a Problem option before?

{
	"contextual": [
		"record",
		"kb_view"
	],
	"newTabMenu": [
		{
			"label": {
				"translatable": true,
				"message": "New Interaction"
			},
			"routeInfo": {
				"route": "record",
				"fields": {
					"table": "interaction",
					"sysId": "-1"
				},
				"multiInstField": "sysId"
			},
			"condition": {
				"tableDescription": {
					"table": "interaction",
					"canCreate": true
				}
			}
		},
		{
			"label": {
				"translatable": true,
				"message": "New Incident"
			},
			"routeInfo": {
				"route": "record",
				"fields": {
					"table": "incident",
					"sysId": "-1"
				},
				"multiInstField": "sysId"
			},
			"condition": {
				"tableDescription": {
					"table": "incident",
					"canCreate": true
				}
			}
		},
		{
			"label": {
				"translatable": true,
				"message": "New Change Request"
			},
			"routeInfo": {
				"route": "create-change-request-page",
				"fields": {},
				"multiInstField": ""
			},
			"condition": {
				"tableDescription": {
					"table": "change_request",
					"canCreate": true
				}
			}
		}
	],
	{
			"label": {
				"translatable": true,
				"message": "New Problem"
			},
			"routeInfo": {
				"route": "record",
				"fields": {
					"table": "problem",
					"sysId": "-1"
				},
				"multiInstField": "sysId"
			},
			"condition": {
				"tableDescription": {
					"table": "problem",
					"canCreate": true
				}
			}
		},
	"maxMainTabLimit": 10,
	"maxTotalSubTabLimit": 30
}
1 ACCEPTED SOLUTION

@LRhodes 

I think you need to keep your problem json definitions ( label, routeinfo, condition )  within the array [   ], check how interaction, incident  and change definitions are kept within the array [  ]  = >   [  {      }, {   } ,{    }   ],  

 

DharmaLiyanag1_0-1739451779549.png

 

View solution in original post

5 REPLIES 5

BHASKARY
Tera Contributor

can we add specific roles to the tabs , so that only users having specific role can create a specific new record ??