Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Batching and Chaining: Associate a newly created asset with existing incident via Async SOAP call (1 Comment)

$
0
0

Topic by Shreyas Pandhari

Content

Hi,

I have a requirement where an inventory system would need to create asset record in RightNow, associate the newly created asset with the incident as an asynchronous request.

I want to achieve this in a single XML request instead of multiple API calls, first to create asset and then second call to update the incident with the asset id.

Is there any way I can configure such a request xml? In the developer soap documentation, I can see an example of contact creation and associating the contact with incident. But not able to get how the contact ids of newly created contacts are associated with the incident.

I can create the asset with this request but somehow it is not getting associated with the incident.

Error response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <n0:BatchResponse xmlns:n0="urn:messages.ws.rightnow.com/v1_2" xmlns:n2="urn:base.ws.rightnow.com/v1_2" xmlns:n3="urn:faults.ws.rightnow.com/v1_2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:n1="urn:objects.ws.rightnow.com/v1_2">
         <n0:BatchResponseItem>
            <n0:CreateResponseMsg>
               <n0:RNObjectsResult>
                  <n0:RNObjects xsi:type="n1:Asset">
                     <n2:ID id="51"/>
                  </n0:RNObjects>
               </n0:RNObjectsResult>
            </n0:CreateResponseMsg>
         </n0:BatchResponseItem>
         <n0:BatchResponseItem>
         
  <n0:RequestErrorFault xsi:type="n3:RequestErrorFaultType">
               <n3:exceptionCode>BAD_ID</n3:exceptionCode>
               <n3:exceptionMessage>Invalid ID: No such Mailbox with ID = 1
While processing Incident->Mailbox(rnb_v1_2::NamedID).</n3:exceptionMessage>
            </n0:RequestErrorFault>

         </n0:BatchResponseItem>
         <n0:BatchResponseItem>
            <n0:RequestErrorFault xsi:type="n3:RequestErrorFaultType">
               
<n3:exceptionCode>UNKNOWN_EXCEPTION</n3:exceptionCode>
               <n3:exceptionMessage>Operation not attempted due to previous failure in transaction</n3:exceptionMessage>
            </n0:RequestErrorFault>
         </n0:BatchResponseItem>
      </n0:BatchResponse>
   </soapenv:Body>
</soapenv:Envelope>

Appreciate the help in advance.

 

Thanks,

Shreyas

Version

Feb 2015

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles