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

Jessica38
Tera Contributor

Any luck with this? I'm trying to accomplish the same thing.

Vadzim Surin1
Tera Expert

Hi @daware-madhu103 .
I would like to pay your attention again to my code what I prevoiusly posted. Especially to the 'condition' block.
Ok, I repeat my code again.

   {
                        "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
				}
			}
                }

Look at the 'condition' block. This means that to open Service Catalog and then to submit a request successfully non-admin user must have permission to create a record in the 'universal_request' table. Because on our project we create a Universal Request each time after submitting a request. And we have granted this permission (in ACL on this table) to users who service this records. Of cause, you can use any condiition as you whish.
In my example if I revoke a role which is granting a permission to create a record in the 'universal_request', this option will be hidden under '+' tab on the Service Operations Workspace.
Please check the 'condition' block.
I'm not sure, try to ommit the 'condition' block if you don't have to restrict your option under the '+' tab.

Hello @Vadzim Surin1,

  Thank you for the solution. For our case, we added a table for which users have access (the Incident table) and it worked!  

Hi @Vadzim Surin1 

This works! thanks