How to export data in ServiceNow Data?

How to export data in ServiceNow Data?

In this session, you will be learning how to export a form, lists, URL, web services, sets, etc. in ServiceNow.  There are various ways for administrators and users to export data. Let’s look into those concepts in detail.

Exporting Form

The user interface allows you to export an individual record. Directly from a form, use PDF or XML format.

Form data can be exported in a number of formats by any user role.

The following are a list of exporting formats:

  • PDF (Portrait)
  • PDF (Landscape)
  • XML (This Record)

By right-clicking a form header bar and choosing the export type, you can export a single record from a form.

Exporting data from a form

Note: Any field that is disabled by UI scripts (UI actions, UI policies, client scripts) and any field that is accessible from the current view are exported when PDF data from a form is exported. When exporting XML files, however, regardless of the view, all fields are exported. You can’t export records from a form to CSV or Excel.

A dialogue box can prompt you to save the file when exporting to XML, or the browser may save the XML file to the downloads folder defined in the browser preferences.

Exporting  a List

The user interface allows you to export several records. Select directly from a catalog of Excel, CSV, XML, PDF, or formats.

A catalog of records can be exported in a number of formats. In List v2, the Export option can be found in the context menu of the column heading. It can be included in the list title menu in List v3.

Exporting from a v2 list

Note: Export the record that contains the embedded list to export the records in the list.

Export formats include:

  • Excel
  • CSV
  • XML
  • JSON
  • PDF (Portrait)
  • PDF (Landscape)
  • PDF (Detailed Portrait): Each record’s list and related form are exported.
  • PDF (Detailed Landscape): Each record’s list and related form are exported.

Note: The “glide.csv.export.line_break” device property lets you monitor how line breaks appear in exported CSV data.

A dialogue box can prompt you to save the file when exporting to XML, or the browser may save the XML file to the downloads folder defined in the browser preferences.

Deciding which list fields should be exported

When you export data from a list, by default it only exports the fields that are available in the current view.

Run a URL query to filter a list result.

Before exporting filtered collections, use URL queries to create them programmatically.

Exporting URL

Using Excel, CSV, XML processor, or PDF export various records from a table. In the URL, specify the table form or list you would like to export. If you need to dynamically export data from a script or web server, you might want to export data from the URL.

Build a URL that includes the following sections to export data directly from the URL:

Steps of Implementation

  1. The instance URL must be specified. For eg, “https://<instance name>”.
  2. Choose whether to export a table form or a list. For instance, “”
  3. For the export, choose the export format processor to use. For instance,?CSV.
  4. (This is optional) For URL parameters, specify a query and sort order. For instance,”&sysparm_query=sys_id%3E%3Db4aedb520a0a0b1001af10e278657d27”.

One of the following examples of final URLs can be used:

  1. https://<instance name>

All activities can be exported to a text file with commas separating the values.

  1. https://<instance name>

Export a particular incident to a comma-separated value text file.

  1. https://<instance name>

All events should be exported to a comma-separated value text file and sorted by sys_id.

Note: For direct URL entry, ServiceNow requires simple authentication. Only the fields to which the already authenticated user has read access are included in the data derived from the URL.

Using a program call URL export

Any program may use a URL export to dynamically export data from a script or web service.

Web services

When an external client makes a web services order, export several records from a table. Create an external program or method to automate data extraction from an instance using REST or SOAP web resources.

HTTP-based web services enable various programs to communicate with one another. Outbound (consumer) and Inbound (provider) online services are all supported by ServiceNow.

Direct inbound web services

You may use a client program to view and change ServiceNow data using inbound web services.

  • Scripted REST APIs
  • SOAP web service
  • JSONv2 Web Service
  • RSS feed generator

Creating complex data forms by exporting and converting table records

Other inbound web services

Outbound web services

You may use outbound web services to deliver SOAP and REST messages to third-party web service providers.

  • Web service with outbound SOAP
  • Web service with Outbound REST web service


REST (REpresentational State Transfer) is a stateless architecture that sets standards between web-based computer systems, making it easier for them to communicate.

REST APIs with scripts

Application developers can create custom web service APIs using the scripted REST API function.

Application of GraphQL APIs

To query record data from a feature or a third-party system, create a custom GraphQL API.

Web service that uses SOAP

SOAP (Simple Object Access Protocol) is an XML-based protocol for using HTTP to access web resources.

Examples of inbound web services

Examples of inbound web services show how to use ServiceNow web services.

Creating complex data forms by exporting and transforming records

Export table records and convert them to complex data types like XML, JSON, PDF, XLS, and CSV using URL parameters.

Web Service with JSONv2

It’s a natural extension of the JavaScript language to be able to represent data sets in JSON format.

Web service with RSS

RSS (Rich Site Summary) is a web-based content delivery format that varies on a regular basis.

SOAP API analytics and REST

You can monitor and evaluate web service API use with REST and SOAP API analytics.

Web service with Outbound REST 

On a web services server that supports the REST architecture, ServiceNow outbound REST functionality helps you to create, retrieve, delete, or update data.

Web service with Outbound SOAP

Create, prototype, and store outbound SOAP messages for use in business rules and scripts with the SOAP Message module.

Mutual authentication for Outbound web services

Through sharing Secure Sockets Layer (SSL) certificates, mutual authentication builds trust.

logging with outbound web services

For outbound web resources like REST and SOAP, keep track of requests and responses.

Outbound web service server name indication

Server Name Indication is supported in outbound HTTP requests, including SOAP, REST, and GlideHTTPPClient requests.

Connection Management for HTTP Clients

Wherever possible, outbound HTTP(S) connections from a base device instance are retained and reused, as are inbound connections from MID Servers, the ODBC driver, and other clients.

ODBC driver

The ServiceNow open database connectivity (ODBC) driver gives you read-only access to your ServiceNow instance’s database.

Web Services Domain separation

This is a brief summary of Web Services domain separation. You can divide your data, procedures, and administrative tasks into logical domains using domain separation. You can also monitor other facets of the separation, such as which users have access to data and which users can view it.

Exporting sets

Make an export set file with all of the information you would like to export. Data can be pushed from an instance to an external file using export sets. A MID Server can be used to export data to a remote system.

Note: A MID Server from the Geneva release or later is needed. Export sets are not supported in earlier MID Server releases. On MID Servers in a cluster, export sets are not allowed.

Export set creation

To export records from your instance to a file on a MID Server, create an export set.

Export definition Creation

To specify what data to export in an export set, create an export specification.

Export target creation

Create an export target to specify where data can be exported.

Scheduling an export

You may use a plan to send data from an export set to a remote location on a regular basis. You may periodically push data to an external site, such as for monitoring or maintaining a snapshot of the data, by setting up a recurring, scheduled export.

History of Export set

When an export set runs, whether scheduled or manually initiated by a user, an export set history record is automatically generated. Export box history archives can be used to monitor and troubleshoot the status of export sets.

Properties of Export Set 

These settings determine how export sets behave.


You have now seen various exporting formats and web services of ServiceNow. To learn ServiceNow, get this Servicenow Certification Training course curated by the industrial experts where you will be mastering the concepts of ServiceNow by learning workflows, user administration, service administration,  processes, IT configuration, etc. that aids in transforming your career.


Leave a Reply