Back to ServiceNow Integrations
Handler · Version 1

ServiceNow Incident Search ServiceNow

Download GitHub

About

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.

Configurations
Name Description Sample
username Username/Email of target user.
password Password of the user. *********
instance_url The url for your Service Now instance (ie. https://sandbox.service-now.com/).
Parameters
Name Description Sample
Query XML The query string for what incidents should be returned in xml format. <__encoded_query>sys_created_on > 2014-01-01
Results
Name Description
XML All sys_id's that match the query formatted in XML
Changelog

ServiceNow Incident Search v1 (2014-05-30)

  • Initial version. See README for details.
Download GitHub

On This Page

Looking for a workflow engine? Learn more about the Kinetic Data Enterprise Workflow Platform. Check it out
Return to Top