I'm using Proc Auto to process administrative changes to contacts in Service Desk.
How can I update the access type on a contact?
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:
@Michael: I looked into that option but it doesn't expose it.
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>
Retrieving data ...