Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
How to remove the available export options for lists in Service Portal - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to remove the available export options for lists in Service Portal
KB0727038

How to remove the available export options for lists in Service Portal


2979 Views Last updated : Jul 22, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

In any Service Portal list view, currently 'Export as PDF', 'Export as Excel', and 'Export as CSV' are available options to export the records.

Example URL for incident list page:

https://<instance-name>.service-now.com/sp?id=list&table=incident

 

This article explains how to remove any of these options.

 

Procedure

The code for this is in 'Data Table' widget(ID:widget-data-table) widget. The server script of widget has below line of code:

$scope.exportTypes = [{label:'PDF', value: 'PDF'}, {label:'Excel', value:'EXCEL'}, {label:'CSV', value:'CSV'}];

This widget is included as embedded widget in 'Data Table From URL Definition' (ID:data-table-from-url) in Line 47 of server script.

data.dataTableWidget = $sp.getWidget('widget-data-table', data);

Please follow the below steps to update the options:

1. Clone 'Data Table' widget and name it as 'Clone of Data Table' (ID:clone-widget-data-table) and remove export types that are not needed and save the record.

 For example if we change from

$scope.exportTypes = [{label:'PDF', value: 'PDF'}, {label:'Excel', value:'EXCEL'}, {label:'CSV', value:'CSV'}];

to

$scope.exportTypes = [{label:'Excel', value:'EXCEL'}, {label:'CSV', value:'CSV'}];

 'Export as PDF' option will be removed.

 

2. Clone 'Data Table From URL Definition' (ID:data-table-from-url) and name it as 'Clone of Data Table From URL Definition' (ID:clone-data-table-from-url)

and in Server Script change

data.dataTableWidget = $sp.getWidget('widget-data-table', data);

 to

data.dataTableWidget = $sp.getWidget('clone-widget-data-table', data);

 

3. Update 'list' page to use 'Clone of Data Table From URL Definition' in the widget instance.

 

Note : Any widget name and ID can be used for the cloned widgets. Make sure to use the ID correctly, while including the embedded widget

Release

Any supported version


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

Attachments

Attachments

  • Screen Shot 2019-02-20 at 8.12.18 AM.png

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.