Skip to main content
Kinetic Community

ServiceNow Incident Search

Search for a Service Now incident.

Downloads

By downloading this file, you acknowledge that you agree to our Terms of Service

servicenow_incident_search_v1.zip

Detailed Description

This handler searches for incidents in Serice Now and returns any that meet your query in JSON format. The return json uses the sysid as the key and the value is another JSON map with all the information about the incident. To query for an incident, you need to provide the query in xml. The handler uses the getRecords call from the Service Now SOAP API, so the parameter provided just needs to specify what to look for in incident fields. For example, if you are searching for a date (or anything that can't be qualified by a direct equality statement), you can use the <encodedquery> parameter, which can be used for any general query statements. For example, you could search for any incidents that were created after a certain time (ie. <encodedquery>syscreated_on > 2014-04-15</encodedquery>). For everything else, you can make the search with the xml tag beings the field that you want to search. For example, if you want to match a incident number or short description, you would search for INC000000001 or <shortdescription>this is a short description.

Parameters

Name Description
Query XML The query string for what incidents should be returned in xml format.

Sample Configuration

Parameter Example Configuration
Query XML <__encoded_query>sys_created_on > 2014-01-01

Results

Name Description
XML All sys_id's that match the query formatted in XML

Change Log

Version Date Description
1 2014-05-30 * Initial version. See README for details.