Workspace Chrome Tab to External URL

Sarah McLaughli
Tera Contributor

Utilizing the chrome_tab from the Service Operations Workspace, we want to route to the Change Wizard in the platform. 

 

This is what we have where the link should return back to the Platform UI:

 

{
    "contextual": ["record", "kb_view"],
    "newTabMenu": [
      {
        "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": "Create Change in Platform"
        },
        "routeInfo": {
          "route": "<some way to link to /wizard_view.do?sys_target=&sysparm_wizardAction=sysverb_new&sysparm_parent=8db4a378c611227401b96457a060e0f4&sysparm_stack=change_request_list.do>",
          "fields": {},
          "multiInstField": ""
        },
        "condition": {
          "tableDescription": {
            "table": "change_request",
            "canCreate": true
          }
        }
      }
    ],
    "maxMainTabLimit": 10,
    "maxTotalSubTabLimit": 30
  }
  

 

 

Here is a reference to the Chrome Tab docs with only information of routing to records and no details on external links: https://docs.servicenow.com/bundle/vancouver-it-service-management/page/product/service-operations-w...

 

I've also looked at the overall community post for chrome_tab without any luck: https://www.servicenow.com/community/next-experience-articles/workspace-app-shell-ux-page-properties... 

 

Any help on this would be greatly appreciated! 

10 REPLIES 10

Hi 

 

Have u got any solution for this?

you can use this inside the chrome_tab routeInfo to achieve that.

,
    {
      "label": {
        "translatable": true,
        "message": "Test Link"
      },
      "routeInfo": {
        "route": "",
        "fields": {},
        "multiInstField": "",
        "external": {
          "url": "https://google.com"
        }
      },
      "condition": {
        "tableDescription": {
          "table": "change_request",
          "canCreate": true
        }
      }
    }




HI 

My requirement is like whenever i click the + icon onto the workspace istead of creating a new record , it should be redirected to service portal home page
Catalog Categories - Service Portal


with the sample above you can enter any link you wish, simply remove the other buttons from the same json file

Michael_Martin
Tera Contributor

also looking forward to this