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
Element | Definition | Required |
---|---|---|
| Contains the name of the operation: | Yes |
| Specifies the parent tag that contains the proxy server information | No |
| Specifies the IP or host name of the proxy server | Conditional |
| Specifies the port on which the proxy server listens for requests | Conditional; required only if |
| Specifies the user name to be used for proxy server authentication | No |
| Specifies the password that corresponds to the proxy server | No |
| Specifies a list of arguments required for the create-change operation | Yes |
| Specifies the parent tag of | No |
| Specifies the user name for remote host authentication | Conditional; required if |
| Specifies the password that corresponds to the proxy server | Conditional; required if |
| Contains the name of the element: | No |
| Contains the name of the element: | No |
| Contains the name of the element: | No |
| Contains the name of the element:
| No |
| Contains the name of the element: | No |
| Contains the name of the element:
| No |
| Contains the name of the element:
| No |
| Contains the name of the element:
| No |
| Contains the name of the element:
| No |
| Contains the name of the element:
| No |
| Contains the name of the element: | No |
| Contains the name of the element: Note The value of this field is not displayed in the response. | No |
| Contains the name of the element: | No |
| Contains the name of the element: | No |
| Contains the name of the element: | No |
| Contains the name of the element: | No |
| Contains the name of the element: | No |
| Contains the name of the element: | No |
| Contains the name of the element: | No |
| Contains the name of the element: | No |
<template-name> | Specifies the name of the template based on which you can create a change record | No |
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 = "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>Comprehensive</type>
<state>Open</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>
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>Open</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>
Comments
Log in or register to comment.