Invalid Parameter Error when using updateObject method in Service Desk Manager
search cancel

Invalid Parameter Error when using updateObject method in Service Desk Manager

book

Article ID: 277044

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

An error occurs when trying to use updateObject:

Error - Invalid Parameter

Environment

SDM 17.x

Cause

There are missing parameters under the <attributes> tag

Resolution

Add to the <attributes>  the attributes that are referenced in the attrVals and objectHandle tags.

Example:

<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>SID</sid>
         <objectHandle>cnt:<UUID></objectHandle>
         <attrVals>
            <!--1 or more repetitions:-->
            <string>contact_num</string>
            <string>123456</string>

         </attrVals>
         <attributes>

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

           <string>persistent_id</string>

              <string>contact_num</string>

         </attributes>
      </ser:updateObject>
   </soapenv:Body>
</soapenv:Envelope>

In the example above, contact_num and persistent_id are referenced under attrVals that also need to be referenced under the attributes tag.

Additional Information

There is information about this method in the following link:

UpdateObject