Close Incident operation for the ServiceNow adapter


The Close Incident operation closes an incident record.

The following table describes the elements for this request. If not specified, the valid value for an element must be assumed to be a string.

 Adapter request elements for the Close Incident operation

The following figure displays the sample adapter request for this operation:

Sample adapter request for the Close Incident operation

 <service-now-request>
   <operation-name>close-incident</operation-name>
   <proxy-settings>
     <host>172.11.11.111</host>
     <port>808</port>
     <user-name>username</user-name>
     <password encryption-type = "Base64">cGFzc3dvcmQ=</password>
   </proxy-settings>
   <arguments>
     <connection-parameters>
           <user-name>username</user-name>
           <password encryption-type = "Base64">cGFzc3dvcmQ=</password>
     </connection-parameters>
     <query>
       <approval>Not Yet Requested</approval>
       <category>13</category>
       <closed-by>System Administrator</closed-by>
       <contact-type>Phone</contact-type>
       <impact>5</impact>
       <knowledge>1</knowledge>
       <number>A3012</number>
       <priority>7</priority>
       <severity>3 - Low</severity>
       <short-description>9</short-description>
     </query>
     <update>
       <incident-state>Closed</incident-state>
     </update>
   </arguments>
 </service-now-request>


The following figure shows the adapter response for the sample request:

Sample adapter response for the Close Incident operation

 <service-now-response>
 <metadata>
   <response-count>1</response-count>
 </metadata>
 <responses>
   <response>
     <metadata>
       <count>1</count>
     </metadata>
     <item>
       <metadata>
         <status>success</status>
       </metadata>
       <parameters>
         <active>0</active>
         <approval>Not Yet Requested</approval>
         <business-duration>1970-01-02 16:00:00</business-duration>
         <business-stc>144000</business-stc>
         <calendar-duration>1970-01-07 22:52:06</calendar-duration>
         <calendar-stc>600726</calendar-stc>
         <category>13</category>
         <closed-at>2010-04-14 12:37:55</closed-at>
         <closed-by>System Administrator</closed-by>
         <contact-type>Phone</contact-type>
         <escalation>(14)</escalation>
         <impact>(5)</impact>
         <incident-state>Closed</incident-state>
         <knowledge>1</knowledge>
         <made-sla>1</made-sla>
         <notify>Do not notify</notify>
         <number>A3012</number>
         <opened-at>2010-04-07 13:45:49</opened-at>
         <order>0</order>
         <priority>(7)</priority>
         <reassignment-count>0</reassignment-count>
         <severity>3 - Low</severity>
         <short-description>9</short-description>
         <state>Closed Complete</state>
         <sys-class-name>test</sys-class-name>
         <sys-created-by>admin</sys-created-by>
         <sys-created-on>2010-04-07 13:45:49</sys-created-on>
         <sys-domain>global</sys-domain>
         <sys-id>d88506e14a3623050193ab5fd3b470c1</sys-id>
         <sys-mod-count>65</sys-mod-count>
         <sys-updated-by>admin</sys-updated-by>
         <sys-updated-on>2010-05-20 06:10:00</sys-updated-on>
         <upon-approval>Proceed to Next Task</upon-approval>
         <upon-reject>Cancel all future Tasks</upon-reject>
         <urgency>(6)</urgency>
       </parameters>
     </item>
   </response>
 </responses>
</service-now-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*