Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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
Mega Sage
Mega 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
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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Shruti
Mega Sage
Mega 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
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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader