Hide New Button the workspace and related list

Community Alums
Not applicable

Hi Team,

 

I have custom application developed and when I access the tables from workspace I can see the new button coming up on the list view and related list as well I have made changes to list control but it's working on platform but not on the workspace and portal I have tried to make changes on the list actions as well but as the tables or in scoped application when I make changes on the global record the scoped tables are not visible, please help me how can I hide the New button on scoped application.

 

Thanks,

Prudhvi

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Community Alums 

if you ensure correct table level CREATE ACLs are configured the buttons will be hidden for the users who don't satisfy the ACL.

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

4 REPLIES 4

phgdet
Mega Sage

Hi @Community Alums ,
It's a action assignment called create-new-uxf, which is applied for Global table so that you need to create a new Action Exclusion record for your related list table. 
Screenshot 2025-05-23 at 11.55.44.png

Find the action assignment in table sys_declarative_action_assignment.
Maybe you need a script to create a new one 

var current = new GlideRecord("sys_workspace_declarative_action_exclusion");
current.initialize();
current.setValue("action_assignment", "5555b77273131010a0a79329faf6a780"); //id of Action Assignment create-new-uxf
current.setValue("table", <your_related_list_table>);
current.setValue("exclude_self", true);
current.insert();

Community Alums
Not applicable

Hi @phgdet , Thanks for the response, I have tired it but no luck when I tried created in global application my custom tables are visible and when switch to my custom application it's not allowing me to make changes as it's out of application scope

Hi @Community Alums, 
If it is the only record you need to create in the correct scope, I recommend you create that Action Exclusion record in global scope, then change its scope to your custom scope through XML.

Here are steps:
1. Export that record to .xml file

2. Show .xml file of a random record in your correct scope and copy these lines.

phgdet_0-1747987758844.png

3. Replace the global scope line in the downloaded .xml file with lines above.

4. Import the .xml file again to the list of Action Exclusion.
Now you got that file created in the correct scope.
Check the reference here

I hope you can achieve it.

Ankur Bawiskar
Tera Patron
Tera Patron

@Community Alums 

if you ensure correct table level CREATE ACLs are configured the buttons will be hidden for the users who don't satisfy the ACL.

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