CA Service Management

 View Only
  • 1.  Update Access Type on a CNT object

    Posted Aug 31, 2017 10:22 AM

    I'm using Proc Auto to process administrative changes to contacts in Service Desk.

    How can I update the access type on a contact? 



  • 2.  Re: Update Access Type on a CNT object

    Broadcom Employee
    Posted Aug 31, 2017 11:05 AM

    Joel, Moving this to the Service Desk community as this is more of a Service Desk API question than a Process Automation question.

     

    If I was to guess I would say the updateObject method would allow for this:

    https://docops.ca.com/ca-service-management/14-1/en/reference/ca-service-desk-manager-reference-commands/technical-reference/web-services-methods



  • 3.  Re: Update Access Type on a CNT object

    Posted Aug 31, 2017 11:20 AM

    @Michael: I looked into that option but it doesn't expose it. 



  • 4.  Re: Update Access Type on a CNT object

    Posted Sep 07, 2017 04:49 PM

    J, 

      Yes, it's exposed and Mike's right.  You can use the updateObject SOAP call.  here's an example of one where I set the Access Type of a user to "Employee" which is 10005

     

    Pass in a valid session ID, the objectHandle is the handle of the individual, the attribute is access_type and the value is the numeric equivalent.  If you don't know the number,  run a SQL query on the table acctyp_v2 to see them all.  del = 0 are the active entries.

     

    <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>985739731</sid>
    <objectHandle>cnt:F46B6E974B7D7A42B7174F91E70F59AA</objectHandle>
    <attrVals>
    <string>access_type</string>
    <string>10005</string>
    </attrVals>
    <attributes>
    <string>access_type</string>
    </attributes>
    </ser:updateObject>
    </soapenv:Body>
    </soapenv:Envelope>