We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Hide Export Context Menu in List View

ChezAndrewI0898
Tera Contributor

Use Case:
I want to hide the Export Context Menu in List View based on the roles or users.

 

I know you can add condition in the context menu but I dont want to touch that since its a global scope:
!ListProperties.isRelatedList() && !ListProperties.isRefList()

 

Is there a workaround for this one?

 

Thanks.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@ChezAndrewI0898 

Simply override that for your table by changing the table from global to your table and perform Insert and Stay

Then add your role based conditions

AnkurBawiskar_0-1745575606094.png

 

Then add the child context menus to it by following same procedure

1) open the child context menu from the global table Export, change the table to incident, set parent to Your newly created above record

2) Do Insert and Stay

AnkurBawiskar_2-1745576025216.png

 

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

6 REPLIES 6

GopikaP
Mega Sage

Hi @ChezAndrewI0898 , you can try 'UI Action Visibility' related list to hide/show based on the roles or users.

Ankur Bawiskar
Tera Patron

@ChezAndrewI0898 

Simply override that for your table by changing the table from global to your table and perform Insert and Stay

Then add your role based conditions

AnkurBawiskar_0-1745575606094.png

 

Then add the child context menus to it by following same procedure

1) open the child context menu from the global table Export, change the table to incident, set parent to Your newly created above record

2) Do Insert and Stay

AnkurBawiskar_2-1745576025216.png

 

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

@ChezAndrewI0898 

Hope you are doing good.

Did my reply answer your question?

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

Does this affect the global export context menu?
I dont want to affect it, i want the global one to stay as is and just hide for my custom table depending on role or if a member of a group.

 

Thanks.