Add 'Create Request' Option in Service Operation Workspace

Alon Grod
Tera Expert

How can I adjust this code and add an option 'Create Request', when the user will choose this option he will be redirect to the instance url (should be dynamic) + esc?id=sc_category, for example: https://servicenow/esc?id=sc_category

The user should have two options: 'Create Incident' (working fine) and 'Create Request').

Screenshot 2023-07-16 at 22.34.45.png

 

{
  "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
        }
      }
    }
  ],
  "maxMainTabLimit": 10,
  "maxTotalSubTabLimit": 30
}
5 REPLIES 5

lauri457
Tera Sage

In case someone is interested to do external navigation or navigate to the portal like in the OP, the minimal schema for an external url item is the following:

        {
            "label": {
                "translatable": true,
                "message": "Test Link"
            },
            "routeInfo": {
                "external": {
                    "url": "/esc"
                }
            }
        }