Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Export directly from the URL

Export directly from the URL

You may want to export data from the URL if you need to dynamically export data from a script or web service.

About this task

You must be familiar with the ServiceNow table and column names to export data directly from the URL. See URL schema for more information about navigating to forms and lists.

To export data directly from the URL, create a URL containing the following parts:

Procedure

  1. Specify the instance URL. For example, https://<instance name>.service-now.com/.
  2. Specify the table form or list to export. For example, incident_list.do.
  3. Specify the export format processor to use for the export. For example, ?CSV.
  4. (Optional) Specify a query and sort order with URL parameters. For example, &sysparm_query=sys_id%3E%3Db4aedb520a0a0b1001af10e278657d27.

    The final URL should look like one of these sample URLs:

    Table 1. Sample URL's
    URL Description
    https://<instance name>.service-now.com/incident_list.do?CSV Export all incidents to a comma-separated value text file.
    https://<instance name>.service-now.com/incident_list.do?CSV&sysparm_query=sys_id%3E%3Db4aedb520a0a0b1001af10e278657d27 Export a particular incident to a comma-separated value text file.
    https://<instance name>.service-now.com/incident_list.do?CSV&sysparm_orderby=sys_id Export all incidents to a comma-separated value text file and sort the list by sys_id.
    Export from URL
    Note: ServiceNow enforces basic authentication for direct URL access. The data extracted from the URL contains only the fields to which the currently authenticated user has read access.