IT Process Automation

 View Only
  • 1.  SDM webservice-Create object for CNT

    Posted Aug 20, 2015 01:31 AM

    Dear All,

     

    We tried updating the contact details using 'update object' operator in PAM, which works fine.

     

    Now we would like  to create contacts using similar method. We are unable to find 'Create Object' operator in PAM operator list.

     

    However we observe a SDM web service method available for same 'Create Object'. The input for the operator is very strange, not sure what values to feed other than sid, object type.

     

    Please advise if i am on right track, else please guide.

     

    Create Object:

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

       <soapenv:Header/>

       <soapenv:Body>

          <ser:createObject>

             <sid>?</sid>

             <objectType>?</objectType>

             <attrVals>

                <!--1 or more repetitions:-->

                <string>?</string>

             </attrVals>

             <attributes>

                <!--1 or more repetitions:-->

                <string>?</string>

             </attributes>

             <createObjectResult>?</createObjectResult>

             <newHandle>?</newHandle>

          </ser:createObject>

       </soapenv:Body>

    </soapenv:Envelope>

     

     

     

    Thanks,

    Saranya



  • 2.  Re: SDM webservice-Create object for CNT
    Best Answer

    Posted Aug 20, 2015 02:01 AM

    1. <attrVals>are pairs of (name, value) strings:

    <attrVals>

    <string>last_name<\string><string>Smith<\string>

    <string>first_name<\string><string>Fred<\string>

    <\attrVals>

    Or you can use dynamic variable macro substitution, e.g.

    <string>last_name<\string><string>last_name__<\string>

    <string>first_name<\string><string>first_name__<\string>

    and then specify a Process variable as the substitution for the macro 'last_name__' etc.

     

    2. The <attributes> list is a list of attributes that are to be returned from the new object.

    For example you might want to retrieve the ref_num and priority for the new ticket:

    <attributes>

    <string>ref_num<\string>

    <string>priority<\string>

    <\attributes>



  • 3.  Re: SDM webservice-Create object for CNT

    Posted Sep 02, 2015 01:39 AM

    Hi James,

     

    Thanks for response, must help. Can you please confirm if Create Object is the right way to create a contact in SDM.

     

    And how does the contact uuid is created? Need some clarification with this method. Please assist.

     

    Thanks,

    Saranya