CA Service Management

  • 1.  Updating Groups Using the Webservice

    Posted Apr 04, 2018 11:57 AM

    I'm attempting to write a PAM process for cross migrating Groups between platforms and ran into a brick wall. The Service Desk Soap interface is very limited in what you can update on the CNT object. Everything that exists out on the usp_contact table seems to be hands off unless there is something I'm missing something here. If this is by design, why? Being able to create automated workflows to manage groups in service desk seem to be an impossibility without this. 



  • 2.  Re: Updating Groups Using the Webservice

    Posted Apr 04, 2018 07:41 PM

    Hi,

     

    Can you share what attributes you are trying to set and your process flow? If you have any error messages to share that would be helpful.



  • 3.  Re: Updating Groups Using the Webservice

    Posted Apr 05, 2018 05:37 AM

    Witch Method are you using and witch attributes you try to migrate ?

    You can always directly the  updateObject method.

    Please have a look into this excellent post there https://communities.ca.com/thread/241795023-copy-members-from-an-existing-group-to-new-group as this may be a similar to what you try to do.

    My 2 cents

    /J



  • 4.  Re: Updating Groups Using the Webservice

    Posted Apr 05, 2018 03:40 PM

    Hi Joel,

     

    Which attribute are you looking to change specifically? I was able to change access_type which is in usp_contact in SOAP. Please look at the following call and see if you can change it to your needs:

     

    <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:handle</objectHandle>
             <attrVals>
                <!--1 or more repetitions:-->
                <string>access_type</string>
                <string>10002</string>
             </attrVals>
             <attributes>
                <!--1 or more repetitions:-->
                <string>access_type</string>
             </attributes>
          </ser:updateObject>
       </soapenv:Body>
    </soapenv:Envelope>



  • 5.  Re: Updating Groups Using the Webservice

    Posted Apr 05, 2018 04:18 PM

    Was trying to update access type, cost center, contact methods, and work shifts.



  • 6.  Re: Updating Groups Using the Webservice
    Best Answer

    Posted Apr 05, 2018 04:31 PM

    I added all the attributes you listed to the call above and it still works for me. I also created a group since maybe I thought it might have been a defect related to the group type but, it works for groups too. What error are you seeing?:

     

    <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:handle</objectHandle>
             <attrVals>
                <!--1 or more repetitions:-->
                <string>access_type</string>
                <string>10002</string>
                <string>billing_code</string>
                <string>1000001</string>
                <string>notify_ws1</string>
                <string>wrkshft:4602</string>
                <string>notify_ws2</string>
                <string>wrkshft:4602</string>
                <string>notify_ws3</string>
                <string>wrkshft:4602</string>
                <string>notify_ws4</string>
                <string>wrkshft:4602</string>
                <string>notify_method1</string>
                <string>1801</string>
                <string>notify_method2</string>
                <string>1801</string>
                <string>notify_method3</string>
                <string>1801</string>
                <string>notify_method4</string>
                <string>1801</string>
             </attrVals>
             <attributes>
             </attributes>
          </ser:updateObject>
       </soapenv:Body>
    </soapenv:Envelope>



  • 7.  Re: Updating Groups Using the Webservice

    Posted Apr 09, 2018 04:13 PM

    I just had capitalization of the attr name access_type. Thanks! it's working!



  • 8.  Re: Updating Groups Using the Webservice

    Posted Apr 07, 2018 12:48 AM

    SDM APIs are primitive, not limited. The only thing you cannot do is delete. Otherwise you can do it.

     

    To migrate group cross platform you only need three methods.

     

    doSelect to query the source system

    createObject (cnt)(type 2308) to create group

    createObject (grpmem) to create analyst <-> group relationship.

     

    I can provide you with a sample workflow if needed. Will take 20 minutes to build.