logo

NJP

Large Exports from ServiceNow

Import · Nov 30, 2023 · article

less than 1 minute read

As ServiceNow points out in KB0727636, by default, ServiceNow has a max limit of 10,000 records that can be exported from a table when using the user interface, the Table API or the Export URL method, i.e. https://instancename.service-now.com/cmdb\_ci\_computer.do?CSV&sysparmdefaultexportfields=all

Solution

A simple PowerShell script that will query the Table API for the selected table and loop through blocks of 10,000 until all records are retrieved. It then converts the JSON payload to a CSV.

Updated: November 30, 2023

Twitter Facebook LinkedIn

View original source

https://mtcoffee.github.io/large-exports-from-servicenow/