Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

Remove Discuss button change request

pramodkumar
Tera Expert

Hi All - we recently upgraded to Vancouver, we saw discuss button task extended tables. How can remove discuss button from change_request table.

 

 

Thanks!

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron

Hi @pramodkumar 

 

unfortunately, you cannot remove the Sidebar feature (this is the official name) for individual tables for the complete platform only.

 

For this purpose:

  • change your scope to "Omni-Experience Standard Feature Set":
    MaikSkoddow_1-1704512375432.png

     

  • open the following URL: /now/conversation/settings/general
  • disable Sidebar:
    MaikSkoddow_0-1704512202081.png

Maik

View solution in original post

6 REPLIES 6

Florian8
Tera Contributor

I did this on one of my customers instance and this will solve the problem to hide the button for specific table:

1. In the application menu go to declarative actions > form actions

2. Search for Action label "Open create collab chat modal" -> Choose the one applying for your app (Task table if your table is a child of it)

3. On the record you will see a related list "Action Exclusions"

4. Open that related list in a new window to have it filtered for the Action (Table name "sys_workspace_declarative_action_exclusion")

5. Create a new record with following details:

- Action assignment: keep as is

- Table: Insert the table where you want to hide it

- Exclude this table: true

- Exclude all child tables: true if you want child tables under your app table also to hide it

- View: If needed add a specific view to hide it

6. Submit the record and you should see it under the related list "Action Exclusions" in the Declarative Action

 

Action should be hidden now on your form.

 

Alternatively you can create a record in table [sys_cs_collab_enabled_table] for your table and set active=false. It should also hide the button

ajayvemula1
Tera Contributor

If your requirement is to hide the Sidebar Discussion ("Discuss") button on specific tables without affecting other tables, you can achieve this by implementing the sn_oe_sfs.SidebarAdditionalAccessCheck extension point.

This approach allows you to selectively disable the Discuss button for designated tables while keeping the functionality available everywhere else.

Step 1: Create a Script Include

Create a new Script Include:

  • Name: SidebarDiscussTableRestriction
  • Accessible from: All application scopes
  • Active: True

Use the following code:

 

var SidebarDiscussTableRestriction = Class.create();
 
SidebarDiscussTableRestriction.prototype = {
    initialize: function() {},
 
    EXCLUDED_TABLES: ['incident_task'],
 
    canWrite: function(documentTable, documentId) {
        if (this.EXCLUDED_TABLES.indexOf(documentTable + '') === -1)
            return true;
 
        return false;
    },
 
    canRead: function(collabChatSysId, documentTable, documentId) {
        return true;
    },
 
    type: 'SidebarDiscussTableRestriction'
};

Step 2: Create an Extension Instance Record

Navigate to:

System Definition → Extension Instances (sys_extension_instance)

Create a new record with the following values:

Point : sn_oe_sfs.SidebarAdditionalAccessCheck
Class : SidebarDiscussTableRestriction

Field Value
Active : true
Order : 100 


 

 

Benefits of this Approach

  • No impact on the Discuss functionality for other tables.
  • Easily configurable by updating the EXCLUDED_TABLES array.
  • Uses the supported SidebarAdditionalAccessCheck extension point.
  • Scalable solution for restricting Discuss access on multiple tables.
Useful Kbarticle : about extension instances 
https://www.servicenow.com/docs/r/api-reference/web-services/extension-points.html