Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.

XML web service parameters

Log in to subscribe to topics and get notified when content changes.

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:

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, from a list in the UI, you 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:

Using the URL parameter produces an XML format that looks like:
<unload unload_date="2010-03-12 17:48:30">
  <incident action="INSERT_OR_UPDATE">
    <sys_created_on>2010-01-02 22:51:33</sys_created_on>
    <business_duration>1970-01-01 04:14:21</business_duration>
    <closed_at>2009-12-28 22:55:16</closed_at>
    <closed_by display_value="Don Goodliffe">9ee1b13dc6112271007f9d0efdb69cd0</closed_by>
    <sys_updated_on>2010-04-12 01:20:57</sys_updated_on>
    <assignment_group display_value=""/>
    <problem_id display_value="PRB12345">9ee1b13dc6112271007f9d0efd2211d0</problem_id>
    <caller_id display_value="Rick Berzle">5137153cc611227c000bbd1bd8cd2006</caller_id>
    <calendar_duration>1970-01-02 00:04:53</calendar_duration>