OBLYTECH Logo
OBLYTECH Logo

Export incidents from ServiceNow to Excel

To export incidents to Excel, set the filters and columns on the incident list first, then choose Export. On a list, the Export menu offers Excel, CSV, JSON, PDF and Google Sheets, with XML for admins only. Excel exports stop at 500,000 cells by default, so large lists suit CSV or smaller batches.

Pick the export format that fits the job

ServiceNow lists can export records to Excel, CSV, XML, JSON, PDF, Google Sheets or an Export Set, and the options you see depend on your role. The Excel, CSV, JSON and PDF options are open to all users, and so is Google Sheets for list exports. XML is limited to users with the admin role, and Export Set needs the export_set_admin role or the admin role. For typical incident reporting the decision is between Excel and CSV, with PDF reserved for read-only snapshots. To decide which measures the file should carry, see the incident KPIs guide. For the wider incident process, see the Incident Management guides.

Format Who can use it Best suited to
Excel All users Spreadsheets for review, sorting and sharing with people who work in Excel
CSV All users Large incident pulls, data cleaning and feeding other tools
PDF All users Printed or read-only snapshots
Google Sheets All users, list exports Cloud-based spreadsheets in Google Drive
XML Admin role Machine-readable records for integration work

Excel is the format many people mean when they ask for an incident spreadsheet. Once a list grows, CSV is often the better choice, because the Excel format has a cell ceiling on top of its row limit, and on views of more than 50 columns the cell ceiling arrives before the row limit. For reporting that goes beyond a one-off export, see the reporting and dashboards guides.

Export from the incident list

Open the incident list that matches the question you are answering, since that is the list you will be exporting from.

Then select Export on the list page. The menu lists Excel and CSV as separate choices, so pick the one that fits the job and confirm the file type on the download. Open it in Excel and confirm that the column breaks and the first row look right before you pass the file on.

Set filters and columns before you export

The Filter icon narrows the list by the conditions you set. Use it to limit the incidents to the period, group or incident state you are reporting on. Being specific here saves trouble later. A filtered list of a few hundred incidents is far easier to work with in Excel than an unfiltered list of tens of thousands.

Configure the list to add or remove columns, so choose the fields before you export. Add the fields you need, then export.

A simple working order is to filter the list, adjust the columns and then export. Check the filter conditions before you start, so you know which ones you applied.

Read the column headers you get back

Formats meant for people use the column labels. Excel and PDF use labels. Formats meant for machine use show database field names, so CSV, XML and JSON use field names.

This matters when the file goes into a second step. A spreadsheet built for a manager can use the readable labels. A file that another tool will parse, or that you plan to join against a second export, is easier to handle by field name, because field names identify the stored field while labels are display text. If you combine a labeled Excel file with a field-name CSV, add a mapping step before you line the columns up. For loading a CSV back into ServiceNow, see the import set data source types guide.

Work within the export limits

The default limit is 10,000 records for XML, CSV, Excel and JSON exports. Each format has its own property: glide.xml.export.limit, glide.csv.export.limit, glide.xlsx.export.limit, glide.excel.export.limit and glide.json.export.limit. A format without its own value falls back to glide.ui.export.limit. These are instance properties that an administrator can change.

Excel has a second limit that is about size rather than rows. The default ceiling is 500,000 cells, controlled by glide.xlsx.max_cells, or by glide.excel.max_cells for the older XLS format. By default each spreadsheet holds 32,000 rows.

PDF exports have their own caps. glide.pdf.max_rows defaults to 1,000 rows. PDF exports also have a column property, glide.pdf.max_columns, and only 25 header labels fit on a page.

Cells are rows multiplied by columns, so the cell ceiling arrives sooner when the view is wide. At the default 10,000-row limit, the cell ceiling only binds when a view has more than 50 columns, because 500,000 cells divided by 10,000 rows is 50. Confirm this with a test export.

When the cell ceiling is reached, the export stops and shows the message: Export stopped due to excessive size. Use CSV for a complete export. Watch for that message on any large Excel export.

Lists also have a warning threshold, set by glide.ui.export.warn.threshold. When an export passes that threshold, a dialog offers two choices: wait for the export to finish, or have the records sent by email as an attachment.

Raising these limits is the last step to take, not the first. A limit is an instance-wide setting that an administrator should change deliberately, and the platform defaults are the baseline to work from. The better route is to break a large export into smaller chunks. In practice that means filtering by a date range, a state or an assignment group, exporting each chunk, and joining the files afterwards.

Export by URL when the pull has to repeat

When the same incident pull is needed again and again, a URL export can replace the Export menu. The URL is built from the instance address, the list page for the table (incident_list.do for incidents) and a processor. The supported processors are CSV, XLS, JSON, XLSX and XML. PDF is not among the processors for URL exports. Adding ?CSV after incident_list.do exports all incidents.

Several parameters shape the output:

  • sysparm_query filters the records, in the form sysparm_query=[column name][operator][value].
  • sysparm_orderby sorts the records by a column name.
  • sysparm_view exports the fields of a named view.
  • sysparm_fields exports the specific fields you name.
  • sysparm_default_export_fields=all exports all fields.

Query parameters, if present, override system properties.

Three caveats matter here. Direct URL access requires basic authentication. Have the table and column names in hand before you build the query. The XML processor also leaves out attachments and journal fields such as Work Notes and Additional Comments. For those, select Export > XML from the list’s context menu.

Handle encoding and translated text

CSV files use Windows-1252 encoding by default. If you need to export translated data, set the glide.export.csv.charset system property to UTF-8 before you run the export.

PDF exports print from left to right, which can produce rendering errors. Right-to-left languages may therefore display incorrectly in a PDF. If incident text is written in a right-to-left language, use Excel or CSV for the working data and treat the PDF as a summary.

Common mistakes to avoid

  • Exporting before the filter is set, which produces a file far larger than the question needs.
  • Assuming a column is in the file without opening it. Check the headers of the download against the columns you need.
  • Missing the stop message. A file that stops at the cell ceiling can look complete, so check for the stop message.
  • Raising limits first. Splitting the export into smaller pulls is the safer first step.
  • Joining exports that use different header types. A labeled Excel file and a field-name CSV will not match column for column without a mapping step.

Frequently asked questions

Can I export incidents from a ServiceNow list?

Yes. Open the incident list, then select Export and choose the format for the job from the options described above.

What is the default number of records in an export?

The default is 10,000 records for XML, CSV, Excel and JSON exports. Administrators can change this through the format-specific properties. Keep the defaults unless you have a specific reason to change them, because the platform defaults are the reference point.

Why did my Excel export stop early?

It probably reached the default ceiling of 500,000 cells. The export shows the message Export stopped due to excessive size, and suggests CSV for a complete export.

Which columns end up in the file?

Configure the list to add or remove columns before you export, and check the columns in the file afterwards.

Can I export incidents without opening the list?

Yes. A URL export builds the query from the table list and a processor. It requires basic authentication.