Create Change operation for ServiceNow


The Create Change operation creates a change 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 Create Change operation

 

The following figure displays a sample adapter request for the create-change operation:

Sample adapter request for the Create Change operation

 <service-now-request>
   <operation-name>create-change</operation-name>
   <proxy-settings>
     <host>172.11.11.111</host>
     <port>808</port>
     <user-name>username</user-name>
     <password encryption-type<service-now-request>
   <operation-name>create-change</operation-name>
   <proxy-settings>
     <host>10.129.94.127</host>
     <port>8080</port>
     <user-name>tso</user-name>
     <password>****MASKED****</password>
   </proxy-settings>
   <arguments>
     <connection-parameters>
       <user-name>admin</user-name>
       <password>****MASKED****</password>
     </connection-parameters>
     <number>CHG0030004</number>
     <assigned-to>Beth Anglin</assigned-to>
     <cmdb-ci>*JEMPLOYEE-IBM</cmdb-ci>
     <requested-by>ITIL User</requested-by>
     <priority>Low</priority>
     <short-description>short desc</short-description>
     <approval>Not Yet Requested</approval>
     <category>Other</category>
     <type>normal</type>
     <state>-5</state>
     <risk>Moderate</risk>
     <description>desc</description>
     <work-notes>my notes</work-notes>
     <requested-by-date>2010-03-29 13:30:45</requested-by-date>
     <start-date>2010-03-29 13:30:48</start-date>
     <end-date>2010-03-29 13:30:50</end-date>
     <work-start>2010-03-29 13:30:53</work-start>
     <work-end>2010-03-29 13:30:56</work-end>
     <change-plan>change plan</change-plan>
     <backout-plan>backout plan</backout-plan>
     <test-plan>test plan</test-plan>
   </arguments>
 </service-now-request> = "Base64">cGFzc3dvcmQ=</password>
   </proxy-settings>
   <arguments>
     <connection-parameters>
       <user-name>username</user-name>
       <password encryption-type = "Base64">cGFzc3dvcmQ=</password>
     </connection-parameters>
       <assigned-to>Beth Anglin</assigned-to>
<cmdb-ci>*JEMPLOYEE-IBM</cmdb-ci>
<requested-by>ITIL User</requested-by>
<priority>Low</priority>
<short-description>short desc</short-description>
<approval>Not Yet Requested</approval>
<category>Other</category>
<type>normal</type>
<state>New</state>
<risk>Moderate</risk>
<description>desc</description>
<work-notes>my notes</work-notes>
<requested-by-date>2010-03-29 13:30:45</requested-by-date>
<start-date>2010-03-29 13:30:48</start-date>
<end-date>2010-03-29 13:30:50</end-date>
<work-start>2010-03-29 13:30:53</work-start>
<work-end>2010-03-29 13:30:56</work-end>
<change-plan>change plan</change-plan>
<backout-plan>backout plan</backout-plan>
<test-plan>test plan</test-plan>
<template-name>change_template</template-name>
   </arguments>
 </service-now-request>

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

Sample adapter response for the Create Change operation

 <service-now-response>
 <metadata>
   <response-count>1</response-count>
   <status>success</status>
 </metadata>
 <responses>
   <response>
     <metadata>
       <count>1</count>
     </metadata>
     <item>
       <metadata>
         <status>success</status>
       </metadata>
       <parameters>
         <active>1</active>
         <approval>Not Yet Requested</approval>
         <assigned-to>Beth Anglin</assigned-to>
         <backout-plan>backout plan</backout-plan>
         <category>Other</category>
         <change-plan>change plan</change-plan>
         <cmdb-ci>*JEMPLOYEE-IBM</cmdb-ci>
         <contact-type>Phone</contact-type>
         <description>desc</description>
         <end-date>2010-03-29 20:30:50</end-date>
         <escalation>Normal</escalation>
         <impact>3 - Low</impact>
         <knowledge>0</knowledge>
         <made-sla>1</made-sla>
         <number>CHG0031327</number>
         <opened-at>2010-05-24 17:26:19</opened-at>
         <opened-by>Jagdeep Singh</opened-by>
         <order>0</order>
         <phase>Requested</phase>
         <phase-state>Open</phase-state>
         <priority>4 - Low</priority>
         <production-system>0</production-system>
         <requested-by>ITIL User</requested-by>
         <requested-by-date>2010-03-29 20:30:45</requested-by-date>
         <review-status>(3)</review-status>
         <risk>Moderate</risk>
         <scope>Medium</scope>
         <short-description>short desc</short-description>
         <start-date>2010-03-29 20:30:48</start-date>
         <state>New</state>
         <sys-class-name>Change Request</sys-class-name>
         <sys-created-by>qaadmin</sys-created-by>
         <sys-created-on>2010-05-24 17:26:19</sys-created-on>
         <sys-domain>global</sys-domain>
         <sys-id>cb59cd174a362305017fc71622a3b598</sys-id>
         <sys-mod-count>0</sys-mod-count>
         <sys-updated-by>qaadmin</sys-updated-by>
         <sys-updated-on>2010-05-24 17:26:19</sys-updated-on>
         <test-plan>test plan</test-plan>
         <type>Comprehensive</type>
         <upon-approval>Proceed to Next Task</upon-approval>
         <upon-reject>Cancel all future Tasks</upon-reject>
         <urgency>3 - Low</urgency>
         <work-end>2010-03-29 20:30:56</work-end>
         <work-start>2010-03-29 20:30:53</work-start>
       </parameters>
     </item>
   </response>
 </responses>
</service-now-response>

The following figure shows the adapter response for the sample request by using a change template:

<service-now-request>
   <operation-name>create-change</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>
<requested-by>DavidLounge</requested-by>
<template-name>change_template</template-name>
</arguments>
 </service-now-request>

 

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

TrueSight Orchestration Content 21.3