CA Service Management

 View Only
  • 1.  How to update a pending action in Service Catalog via webservice?

    Posted Jun 26, 2018 10:22 AM

    Hi everyone!

     

    I need to develop a microservice that allow make approvals by a chat bot. In the first step i show to the user all pending approvals assigned to his, using the method "getPendingActions". The next step is update the selected pending action to completed with approval or rejection, but i dont found a method to perform this action.

     

    Do anyone knows how i can get this?

     

    Request - getPendingActions

    Response - getPendingActions



  • 2.  Re: How to update a pending action in Service Catalog via webservice?

    Broadcom Employee
    Posted Jun 26, 2018 11:58 AM

    Are you looking for the updateRequestItemStatus method? Preferably after performing takePendingAction to own the action first?



  • 3.  Re: How to update a pending action in Service Catalog via webservice?

    Posted Jun 26, 2018 03:50 PM

    It is possible to grant permission to a system user to consult pending actions assigned to another user?

     

    When i try to get the pending actions using the system user the RequestService returns this:

     

    <faultstring>Exception occured because Logged in user has not been assigned this pending action or if it's assigned then Logged in user is not part of the group.</faultstring>



  • 4.  Re: How to update a pending action in Service Catalog via webservice?

    Broadcom Employee
    Posted Jun 27, 2018 10:35 AM

    Hi - if you use the takePendingAction method you'll be able to take the ownership and perform it.



  • 5.  Re: How to update a pending action in Service Catalog via webservice?

    Broadcom Employee
    Posted Jun 27, 2018 10:51 AM

    You might want to provide the relevant information for the below SOAP request and get the results as mentioned by IainLambert

     

    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.soap.usm.ca.com">
       <soapenv:Header/>
       <soapenv:Body>
          <ser:takePendingAction soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
             <sessionID xsi:type="xsd:string">?</sessionID>
             <requestID xsi:type="xsd:int">?</requestID>
             <objectID xsi:type="xsd:int">?</objectID>
             <objectGroupID xsi:type="xsd:int">?</objectGroupID>
          </ser:takePendingAction>
       </soapenv:Body>
    </soapenv:Envelope>



  • 6.  Re: How to update a pending action in Service Catalog via webservice?

    Posted Jun 28, 2018 10:33 AM

    I tried by this way, but the ws response indicate that the system user have not access to this registres, even with admin privileges on the Business Unit.

     

    REQUEST:

    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.soap.usm.ca.com">
    <soapenv:Header/>
    <soapenv:Body>
    <ser:takePendingAction soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <sessionID xsi:type="xsd:string">aff28b12-8e98-4e73-acfe-b85cfc9ab508</sessionID>
    <requestID xsi:type="xsd:int">38852</requestID>
    <objectID xsi:type="xsd:int">12399</objectID>
    <objectGroupID xsi:type="xsd:int">5</objectGroupID>
    </ser:takePendingAction>
    </soapenv:Body>
    </soapenv:Envelope>

     

    RESPONSE:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode>soapenv:Server.generalException</faultcode>
    <faultstring>Exception occured because Logged in user has not been assigned this pending action or if it's assigned then Logged in user is not part of the group.</faultstring>
    <detail>
    <ns1:exceptionName xmlns:ns1="http://xml.apache.org/axis/">com.ca.usm.soap.axisInterfaces.InvalidUserException</ns1:exceptionName>
    <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">UDACAITSMAP03</ns2:hostname>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>