CA Service Management

  • 1.  Update object (alg) SOAP

    Posted Nov 29, 2018 07:35 AM

    Hello, people i wanna know if is posible use soap method for update a log comment value like a description, analyst, etc. y try to do it something like this, for update a value but doesn't work

     

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
    <soapenv:Header/>
    <soapenv:Body>
    <ser:updateObject>
    <sid>1997028349</sid>
    <objectHandle>alg:12915863</objectHandle>
    <attrVals>

    <string>time_spent</string>
    <string>3</string>

    </attrVals>
    <attributes>
    <!--1 or more repetitions:-->
    <string>id</string>
    </attributes>
    </ser:updateObject>
    </soapenv:Body>
    </soapenv:Envelope>

     

    the error returned is 

    <ErrorMessage>Error setting attr 'time_spent' on object 'alg:12915863' to value '3'</ErrorMessage>
    <ErrorCode>1003</ErrorCode>

     

    thanks for your help



  • 2.  Re: Update object (alg) SOAP

    Posted Nov 29, 2018 07:42 AM

    Did you tried to use duration format for time spent, since this field is of type duration

    <string>time_spent</string>
    <string>00:00:03</string>



  • 3.  Re: Update object (alg) SOAP

    Posted Nov 29, 2018 07:48 AM

    Hello,

    it doesnt work, i try to use 

     

    <string>description</string>
    <string>prueba</string>

     

    but it doesn´t work



  • 4.  Re: Update object (alg) SOAP

    Broadcom Employee
    Posted Nov 29, 2018 10:12 AM

    what if you use action_desc instead of description?