XML web service parameters

XML web service parameters

XML web service parameters

ServiceNow supports the URL parameters, sysparm_query and useUnloadFormat, to
customize and filter the response you get.

Table 1. XML web service parameters

Parameter

Description

sysparm_query

The value for this URL parameter is that of an encoded query string
and when
used, will filter the data using the encoded query before returning the XML file.
The following request will filter the list to only return "incidents" that are
active:https://instance_name.service-now.com/incident.do?XML&sysparm_query=active=true

useUnloadFormat

This parameter indicates that the XML format that is returned to be of an
unload format. The unload format is the same format you get when you from a
list in the UI, you right-click a list header and select Export > XML > . =. The unload-formatted XML can be imported back into the
instance
by
administrators of your system.

To enable the unload format from a URL, use the
useUnloadFormat=true URL parameter. For
example:https://instance_name.service-now.com/incident.do?XML&useUnloadFormat=true