Hide Export Context Menu in List View

ican
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
Tera Patron

@ican 

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

View solution in original post

6 REPLIES 6

@ican 

Nope it won't affect

That's what we are doing in above, we are overriding it for incident table and it will only work and reflect for incident table and not impact anywhere in instance.

I believe I have answered 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

ican
Tera Contributor

Will this show 2 Exports in the List View for my custom table?

thanks.