AnsweredAssumed Answered

Create a CI and relationship with a Change Order using Webservices

Question asked by silev02 Employee on Aug 2, 2016
Latest reply on Aug 2, 2016 by silev02

Hello,

I need create a process that create a CI in CMDB and make a relationship with a Change Order.

 

The first step its working, I am using CreateAsset method and the CI is created normally, but I dont know as to do a relationship with the Change Order.

 

Its possible to make it using CreateAsset Method or createLrelRelationships?

 

Someone have a sample or idea that make it ?

 

CREATEASSET CODE

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">

   <soapenv:Header/>

   <soapenv:Body>

      <ser:createAsset>

         <sid>930096233</sid>

         <attrVals>

          <string>name</string>

  <string>TestcreateAsset4</string>

  <string>class</string>

  <string>grc:300063</string>

  <string>serial_number</string>

  <string>001336</string>

  <string>description</string>

  <string>'teste de web'</string>

  <string>zSO1</string>

  <string>LINUX</string>       

          </attrVals>

  <attributes></attributes>

      </ser:createAsset>

   </soapenv:Body>

</soapenv:Envelope>

 

Thanks

Outcomes