Update Change operation for ServiceNow
The Update Change operation updates 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.
If no value is specified for a particular element or the element is skipped, the associated field will not be updated.
Adapter request elements for the Update Change operation
The following figure displays the sample adapter request for this operation:
Sample adapter request for the Update Change operation
<service-now-request>
<operation-name>update-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>
<query>
<number>CHG0030004</number>
<assigned-to>Beth Anglin</assigned-to>
<cmdb-ci>*JEMPLOYEE-IBM</cmdb-ci>
<requested-by>ITIL User</requested-by>
<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>
</query>
<update>
<assigned-to>Beth Anglin</assigned-to>
<cmdb-ci>*JEMPLOYEE-IBM</cmdb-ci>
<requested-by>ITIL User</requested-by>
<priority>Low</priority>
<short-description>short desc11</short-description>
<approval>Not Yet Requested</approval>
<category>Other</category>
<state>-5</state>
<risk>Moderate</risk>
<description>desc11</description>
<work-notes>my notes</work-notes>
<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>
</update>
</arguments>
</service-now-request>
<operation-name>update-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>
<query>
<number>CHG0030004</number>
<assigned-to>Beth Anglin</assigned-to>
<cmdb-ci>*JEMPLOYEE-IBM</cmdb-ci>
<requested-by>ITIL User</requested-by>
<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>
</query>
<update>
<assigned-to>Beth Anglin</assigned-to>
<cmdb-ci>*JEMPLOYEE-IBM</cmdb-ci>
<requested-by>ITIL User</requested-by>
<priority>Low</priority>
<short-description>short desc11</short-description>
<approval>Not Yet Requested</approval>
<category>Other</category>
<state>-5</state>
<risk>Moderate</risk>
<description>desc11</description>
<work-notes>my notes</work-notes>
<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>
</update>
</arguments>
</service-now-request>
The following figure shows the adapter response for the sample request:
Sample adapter response for the Update 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>0</active>
<approval>Requested</approval>
<assigned-to>Beth Anglin</assigned-to>
<backout-plan>backout plan - Backout to Plan 1</backout-plan>
<category>Other</category>
<change-plan>change plan - Changed to Plan 1</change-plan>
<cmdb-ci>3D Pinball</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>JS-CHG-00003</number>
<opened-at>2010-04-20 07:33:59</opened-at>
<opened-by>System Administrator</opened-by>
<order>0</order>
<phase>Requested</phase>
<phase-state>Open</phase-state>
<priority>1 - Critical</priority>
<production-system>0</production-system>
<requested-by>David Dan</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>Update for Request Level Auth.</short-description>
<start-date>2010-03-29 20:30:48</start-date>
<sys-class-name>Change Request</sys-class-name>
<sys-created-by>admin</sys-created-by>
<sys-created-on>2010-04-20 07:33:59</sys-created-on>
<sys-domain>global</sys-domain>
<sys-id>1a2347734a362305010ce5f0f697a518</sys-id>
<sys-mod-count>4</sys-mod-count>
<sys-updated-by>qaadmin</sys-updated-by>
<sys-updated-on>2010-05-25 03:18:18</sys-updated-on>
<test-plan>test plan - Testing to Plan 1</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>
<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>0</active>
<approval>Requested</approval>
<assigned-to>Beth Anglin</assigned-to>
<backout-plan>backout plan - Backout to Plan 1</backout-plan>
<category>Other</category>
<change-plan>change plan - Changed to Plan 1</change-plan>
<cmdb-ci>3D Pinball</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>JS-CHG-00003</number>
<opened-at>2010-04-20 07:33:59</opened-at>
<opened-by>System Administrator</opened-by>
<order>0</order>
<phase>Requested</phase>
<phase-state>Open</phase-state>
<priority>1 - Critical</priority>
<production-system>0</production-system>
<requested-by>David Dan</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>Update for Request Level Auth.</short-description>
<start-date>2010-03-29 20:30:48</start-date>
<sys-class-name>Change Request</sys-class-name>
<sys-created-by>admin</sys-created-by>
<sys-created-on>2010-04-20 07:33:59</sys-created-on>
<sys-domain>global</sys-domain>
<sys-id>1a2347734a362305010ce5f0f697a518</sys-id>
<sys-mod-count>4</sys-mod-count>
<sys-updated-by>qaadmin</sys-updated-by>
<sys-updated-on>2010-05-25 03:18:18</sys-updated-on>
<test-plan>test plan - Testing to Plan 1</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>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*