We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to add "view name" in the JSON of "chrome_tab" workspace UX page property in UI builder?

Swathi Poseti
Tera Contributor

How can we add view name to the JSON of "chrome_tab" workspace UX page property in UI builder used for + symbol on workspace?

{
      "label": {
        "translatable": true,
        "message": "New Incident"
      },
      "routeInfo": {
        "route": "record",
        "fields": {
          "table": "incident",
          "sysId": "-1"
        },
        "multiInstField": "sysId"
      }
}

3 REPLIES 3

Brad Tilton
ServiceNow Employee

You can pass required parameters as fields and optional parameters in the route, but I don't think the record page by default has a parameter for the view. You may need to stup a view rule or create a different record, but I would first take a look at the record page and see if there's a way to set the view on it through the url.

ShubhamG8662710
Tera Guru

Hey! Were you able to get this done? I am looking for the same solution. 

 

paprockaann
Tera Contributor

{
      "label": {
        "translatable": true,
        "message": "New Incident"
      },
      "routeInfo": {
        "route": "record",
        "fields": {
          "table": "incident",
          "sysId": "-1"
        },

       "params": {
                "views": "view_name"
        },
        "multiInstField": "sysId"
      }
}
Depending on page you are using:

paprockaann_0-1755521054605.png