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

Remove Tab in HR workspace

preethigovi
Tera Contributor

Hi Team,

 

I need to remove create interaction option in HR landing page. I have modified  in sys_ux_page_property.LIST and chrome_tab and removed few values. The interaction is hidded but i still see the empty space which is clickable.

 

{
"contextual": [
"case-creation-page",
"interaction-creation-page",
"record",
"kb_version_compare",
"kb_translate",
"kb_view"
],
"newTabMenu": [
{
"label": {
"translatable": true,
"message": "Create HR case"
},
"routeInfo": {
"route": "case-creation-page",
"fields": {
"sysId": "-1"
},
"multiInstField": "sysId"
},
"condition": {
"tableDescription": {
"table": "sn_hr_core_case",
"canCreate": true
},
"roles": [
"sn_hr_core.case_writer"
]
}
},
{
"label": {
"translatable": true,
"message": "Create interaction"
},
"routeInfo": {
"route": "interaction-creation-page",
"fields": {
"sysId": "-1"
},
"multiInstField": "sysId"
},
"condition": {
"tableDescription": {
"table": "interaction",
"canCreate": true
}
}
}
],
"maxMainTabLimit": 10,
"maxTotalSubTabLimit": 30
}

 

I removed the highlighted code.

 

preethigovi_0-1757486043979.png

 

2 ACCEPTED SOLUTIONS

Shruti
Giga Sage

Hi @preethigovi ,

Update the value

{
"contextual": [
"case-creation-page",
"interaction-creation-page",
"record",
"kb_version_compare",
"kb_translate",
"kb_view"
],
"newTabMenu": [
{
"label": {
"translatable": true,
"message": "Create HR case"
},
"routeInfo": {
"route": "case-creation-page",
"fields": {
"sysId": "-1"
},
"multiInstField": "sysId"
},
"condition": {
"tableDescription": {
"table": "sn_hr_core_case",
"canCreate": true
},
"roles": [
"sn_hr_core.case_writer"
]
}
}
],
"maxMainTabLimit": 10,
"maxTotalSubTabLimit": 30
}

View solution in original post

Ankur Bawiskar
Tera Patron

@preethigovi 

try this and ensure JSON is properly formed

{
  "contextual": [
    "case-creation-page",
    "interaction-creation-page",
    "record",
    "kb_version_compare",
    "kb_translate",
    "kb_view"
  ],
  "newTabMenu": [
    {
      "label": {
        "translatable": true,
        "message": "Create HR case"
      },
      "routeInfo": {
        "route": "case-creation-page",
        "fields": {
          "sysId": "-1"
        },
        "multiInstField": "sysId"
      },
      "condition": {
        "tableDescription": {
          "table": "sn_hr_core_case",
          "canCreate": true
        },
        "roles": [
          "sn_hr_core.case_writer"
        ]
      }
    }
  ],
  "maxMainTabLimit": 10,
  "maxTotalSubTabLimit": 30
}

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Shruti
Giga Sage

Hi @preethigovi ,

Update the value

{
"contextual": [
"case-creation-page",
"interaction-creation-page",
"record",
"kb_version_compare",
"kb_translate",
"kb_view"
],
"newTabMenu": [
{
"label": {
"translatable": true,
"message": "Create HR case"
},
"routeInfo": {
"route": "case-creation-page",
"fields": {
"sysId": "-1"
},
"multiInstField": "sysId"
},
"condition": {
"tableDescription": {
"table": "sn_hr_core_case",
"canCreate": true
},
"roles": [
"sn_hr_core.case_writer"
]
}
}
],
"maxMainTabLimit": 10,
"maxTotalSubTabLimit": 30
}

Ankur Bawiskar
Tera Patron

@preethigovi 

try this and ensure JSON is properly formed

{
  "contextual": [
    "case-creation-page",
    "interaction-creation-page",
    "record",
    "kb_version_compare",
    "kb_translate",
    "kb_view"
  ],
  "newTabMenu": [
    {
      "label": {
        "translatable": true,
        "message": "Create HR case"
      },
      "routeInfo": {
        "route": "case-creation-page",
        "fields": {
          "sysId": "-1"
        },
        "multiInstField": "sysId"
      },
      "condition": {
        "tableDescription": {
          "table": "sn_hr_core_case",
          "canCreate": true
        },
        "roles": [
          "sn_hr_core.case_writer"
        ]
      }
    }
  ],
  "maxMainTabLimit": 10,
  "maxTotalSubTabLimit": 30
}

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader