Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    NickL
    Unable To Create Attachments Using RightNow Adapter When...
    Topic posted September 19, 2019 by NickL, tagged SOAP 
    8 Views
    Title:
    Unable To Create Attachments Using RightNow Adapter When Using Create Incident
    Summary:
    Although attachments are created, they are not complete
    Content:

    I'm currently using the RightnNow adapter from BPEL to create new Incidents in Oracle Service Cloud.

    The Incidents are created successfully, along with the attachment, but when the attachment is viewed in AgentWeb, it shows as being only 57 bytes.

    The payload sent to Oracle Service Cloud is as below:

    <InvokeRightNowIncidentCreate_Create_InputVariable>
       <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters">
          <Create xmlns="http://xmlns.oracle.com/pcbpel/adapter/rightnow/[removed]/ProcessCXService/RightNowIncidentCreate/types">
             <Incident>
                <Category xmlns="urn:objects.ws.rightnow.com/v1_4">
                   <Name xmlns="urn:base.ws.rightnow.com/v1_4">Contracts</Name>
                </Category>
                <Channel xmlns="urn:objects.ws.rightnow.com/v1_4">
                   <Name xmlns="urn:base.ws.rightnow.com/v1_4">Post</Name>
                </Channel>
                <IncidentCustomFields xmlns="urn:objects.ws.rightnow.com/v1_4">
                   <c>
                      <sr_type>
                         <Name xmlns="urn:base.ws.rightnow.com/v1_4">Request</Name>
                      </sr_type>
                   </c>
                </IncidentCustomFields>
                <FileAttachments xmlns="urn:objects.ws.rightnow.com/v1_4">
                   <FileAttachmentList action="add">
                      <ContentType>application/pdf</ContentType>
                      <Data>
    JVBERi0xLjYKJfH59/YKJTMuNS1MTXgxOTIwLjE0NTcyCjUgMCBvYmoKPDwvRmlsdGVyL0ZsYXRl
    ...
    ...
    ...
                      </Data>
                      <FileName>GNTRXSM-1_20190822_2_6bb5cdc1-4270-4bbd-9e6a-110403946d8e_CX-GENERIC_HO.PDF</FileName>
                      <Description>GNTRXSM-1_20190822_2_6bb5cdc1-4270-4bbd-9e6a-110403946d8e_CX-GENERIC_HO.PDF</Description>
                      <Name>GNTRXSM-1_20190822_2_6bb5cdc1-4270-4bbd</Name>
                   </FileAttachmentList>
                </FileAttachments>
                <PrimaryContact xmlns="urn:objects.ws.rightnow.com/v1_4">
                   <Contact>
                      <Name xmlns="urn:base.ws.rightnow.com/v1_4">Scanning Dummy</Name>
                   </Contact>
                </PrimaryContact>
                <Product xmlns="urn:objects.ws.rightnow.com/v1_4">
                   <Name xmlns="urn:base.ws.rightnow.com/v1_4">Employee Changes</Name>
                </Product>
                <Subject xmlns="urn:objects.ws.rightnow.com/v1_4">Contracts</Subject>
             </Incident>
          </Create>
       </part>
    </InvokeRightNowIncidentCreate_Create_InputVariable>
    

    The call is successful, and returns the ID of the newly created Incident::

    <InvokeRightNowIncidentCreate_Create_OutputVariable>
       <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters">
          <ns0:CreateResponse xmlns:n0="urn:messages.ws.rightnow.com/v1_4" xmlns:n2="urn:base.ws.rightnow.com/v1_4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:n1="urn:objects.ws.rightnow.com/v1_4" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/rightnow/[removed]/ProcessCXService/RightNowIncidentCreate/types">
             <ns0:Incident xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/rightnow/[removed]/ProcessCXService/RightNowIncidentCreate/types">
                <n2:ID id="2067"/>
             </ns0:Incident>
          </ns0:CreateResponse>
       </part>
    </InvokeRightNowIncidentCreate_Create_OutputVariable>
    

    However, when viewing the Incident in Oracle Service Cloud (see uploaded image) attachment file size is shown as 57 bytes.

    When downloading the attachment, and opening the file in Notepad++, only the following lines are present:

    %PDF-1.6
    %סשקצ
    %3.5-LMx1920.14572
    5 0 obj
    <</Filter/Flate
    

     

     

    Version:
    JDeveloper 12.1.2.3.0/WebLogic 12.1.2.3.0/Oracle Service Cloud 18B (Build 274) - Browser UI Version 3.19.09.06-b0002
    Image: