Disable the Export Option on Lists for Certain Tables

How to disable the Export option on lists for certain tables

The option that appears for the ability to export from a list is controlled by the "Export" sys_ui_context_menu record. This record has the following condition:

!ListProperties.isRelatedList() && !ListProperties.isRefList()

You could update the condition to exclude certain tables using the ListProperties.getTable() method. For example,  to restrict the option so it does not appear for incidents you could alter the above condition to be:

!ListProperties.isRelatedList() && !ListProperties.isRefList() && ListProperties.getTable() != "incident"

Article Information

Last Updated:2019-05-21 11:38:56