How to hide New button on Related List in workspace

IAmIshan
Tera Guru

I tried multiple community solutions, but they did not work for me. I need to disable the New button for two related lists on the Incident record in Workspace:

  1. Child Incident

  2. Change Requests

For the Child Incident related list, I went to the sys_declarative_action_assignment table and set the Enabled field to False, and it worked.



IAmIshan_0-1770911433412.png

Action Label : New
Application : Incident Management for Service Operations Workspace
Table : Incident
Action Model : Related List
Description : Creates a new child incident.

Changed Enable to False

And it worked for me — the New button was disabled for the Child Incident related list. Similarly, I tried to do the same for the Change Request related list and button is still visible

IAmIshan_1-1770912040492.png


Action label : New
Application : Change Management for Service Operations Workspace
Table : Incident
Action Model : Related List

As I am new to Workspace and UI Builder, I am not able to identify the real issue.


IAmIshan_2-1770912370470.png

 



 

 

  

7 REPLIES 7

Mk_snow
Tera Contributor

@IAmIshan @Ankur Bawiskar @SohamTipnis @kristinakra @Harish51 

 

I have the same requirement but, i want to hide the new button if the parent incident state is resolved or closed .

 

Not able to add this condition 

Hello @Mk_snow, could you please provide some details? I don't remember any background knowledge about this thread because it's so old.😊

The button in Service Operations Workspace (SOW) is coming from the sys_declarative_action_assignment table.

To identify the correct button:

  1. Navigate to the sys_declarative_action_assignment table.

  2. Filter the records with:

    • Action model = Related list

    • Table = Change Request

    • Action label = New

You will see several records matching these conditions.

In my case, I temporarily changed the button color for each record to identify which one actually affects the button shown in SOW.
This helped me determine which declarative action is responsible for the button I needed.

After finding the correct record, go to:

Conditions → Client conditions

and add your condition for the state of the incident.