How to call Service Catalog from new tab in Service Operations Workspace?

Vadzim Surin1
Tera Expert

I know that new actions can be added by editing chrome_tab property.
I need to call Service Catalog screen.
Can I simply change route to link "/sp?id=sc_category" and how?


Maybe this way?
"label": {
    "translatable": true,
    "message": "Service Catalog"
    },            
"routeInfo": {
    "route": "/sp?id=sc_category"
    }


Or maybe that?
"label":{
    "translatable":true,
    "message":"Service Catalog"
    },
"type": "navigation",
 "position": 100,
 "primaryDisplay": "none",
 "value": {
    "type": "external",
    "opensWindow": "true",
    "value": {
        "href": "/sp?id=sc_category"
        }
    }

find_real_file.png

13 REPLIES 13

Mohith Devatte
Tera Sage
Tera Sage

hello @Vadzim Surin ,

please refer below screenshots for steps 

1)Open your workspace and click on your profile and in the drop down click on "configure workspace" 

 

find_real_file.png

2) After clicking on it you can see the related in the record to create new menu items

find_real_file.png

3) Create a record for service catalog and you are done 

 

Please mark my answer correct if it helps you

 

Thanks for your answer, @Mohith Devatte .

I know about this possibility in the Agent Workspace. But it has limited functionality. It allows you to create only new record in some tables: incident, interaction, universal request etc.
I need to call Service Catalog screen.

Sorry, I gave little information. I need to call Service Catalog screen in the Service Operations Workspace, not in the Agent Workspace.

Service Operations Workspace allows you to create calls to different pages. But I don't know yet how exactly to configure route to Service Catalog.

Novira Sundberg
Tera Expert

Hi Vadzim, 

I have similar requirement. Have you found the correct syntax?

Or did you ended up creating a page similar to catalog item in SOW?

Thanks!

 

Hello.
Yes, I found a solution.
You have to modify 'chrome_tab' property as it is described at this page:
https://docs.servicenow.com/bundle/utah-it-service-management/page/product/service-operations-worksp...
You need to add this code:

{
                        "label": {
				"translatable": true,
				"message": "Create from Catalog"
			},
			"routeInfo": {
				"route": "record",
				"fields": {
					"table": "sc_cat_item",
					"sysId": "-1"
				},
				"multiInstField": "sysId"
			},
			"condition": {
				"tableDescription": {
					"table": "universal_request",
					"canCreate": true
				}
			}
                }

 You can change name of the table 'universal_request' to something else - it depends what you need to create (e.g. incidents etc.)