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

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@LRhodes 

where is this record?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi Ankur,

 

You can find it here.

 

https://<yourinstance>.service-now.com/now/nav/ui/classic/params/target/sys_ux_page_property.do%3Fsys_id%3Ddf0c9cb97340301045216238edf6a785%26sysparm_record_target%3Dsys_ux_page_property%26sysparm_record_row%3D8%26sysparm_record_rows%3D24%26sysparm_record_list%3Dpage%253Daa881cad73c4301045216238edf6a716%255EORDERBYname

@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

 

Thank you Dharma, and well spotted!

I just had to move the ], down to include my addition to the JSON.