Integration

Get Involved. Join the Conversation.

Topic

    Christopher Maggiulli
    RightNow Adapter and Integration Cloud attachment apiAnswered
    Topic posted June 14, 2018 by Christopher MaggiulliSilver Crown: 22,500+ Points, last edited July 12, 2018 by Arijit ChakrabortyBronze Trophy: 5,000+ Points, tagged Adapters, Integration, Mapping, Process, REST, RightNow, SOAP, Tip 
    444 Views, 21 Comments
    Title:
    RightNow Adapter and Integration Cloud attachment api
    Summary:
    I am looking for the general workflow of using the RightNow adapter to pull files and upload them to integration cloud
    Content:

    We have a functionality called "incident pull" in our application whereby a user in Integration Cloud enters the reference ID of a Oracle RightNow Incident then attaches all the files from that incident into the CEP process. I currently have this working but in a round about way by utilitizing a custom web service instead of the right now adapter. Can someone walk me through the integra here? I have a connection to right using the standard wsdl. It tests fine. Then I build an integration. It starts with a post request that sends in the reference ID of the incident in service cloud and the process ID to attach the incident attachments to in OIC. After the starting point it then goes right to the RightNow adapter (with a mapping in between). I map the Id I get from the start rest service to the RightNow wsdl id. Then I get a Hughes result of values including attachments in base64. Then I try to map from the RightNow adapter to a restaurant service with this endpoint https://docs.oracle.com/en/cloud/paas/process-cloud/cprrb/op-processes-processid-attachments-post.html However it doesn't succeed. Either the wsdl is not returning values or I'm missing a step between the returning of the files from the wsdl and uploading them via that endpoint to OIC.

    Best Comment

    Rajeev Kumar

    File download option is  feature flag enabled, so can you please enable this feature "oic.cloudadapter.adapter.rightnow.fileDownload" on your server, if you are not able to enable this feature ask oracle support to enable this feature for you. once enabled you will able to see the File attachment option in the design time wizard.

    Comment

     

    • Hemanth Lakkaraju

      Then I try to map from the RightNow adapter to a restaurant service with this endpoint https://docs.oracle.com/en/cloud/paas/process-cloud/cprrb/op-processes-processid-attachments-post.html However it doesn't succeed. Either the wsdl is not returning values or I'm missing a step between the returning of the files from the wsdl and uploading them via that endpoint to OIC.

      Is this correct endpoint link? This is a REST endpoint for PCS add attachments but you were talking about some wsdl not returning values? Which wsdl are you talking about here?

      • Christopher Maggiulli
        The integration starts when a user triggers the rest service that kicks off my integration That service takes in two template parameters, a processID and an incidentID. Then I invoke a RightNow Adapter (which is defined through the standard wsdl) and map the user supplied incident ID into the adapter. (so I can get the incident attachments as a response). Then after that I invoke a rest service to attach the attachments in the response of the RightNow adapter to the process as defined by processID It doesn't work though. I'm wondering if I'm missing a step between the RightNow adapter and the final rest API (where I upload the attachments to the process), or if I'm sending data into the RightNow adapter wrong? It seems like either the RightNow adapter is not returning the attachment attributes, or I am missing a step between getting the resulting RightNow data and uploading a file via a web service. Do I need to stage the file first?
        • Hemanth Lakkaraju

          Can you provide the iar or the configuration and mapping for this rest invoke?

          Then after that I invoke a rest service to attach the attachments in the response of the RightNow adapter to the process as defined by processID It doesn't work though.

        • Ravi Sankaran

          Hello,

          You certainly narrowing down the issue

          How did you configure RightNow adapter for retrieving the attachment for the specific incident ID?

          The screenshot shows how the configuration needs to be done.

          The below link discusses how the mapping needs to be done. Have you configured the download option in RightNow adapter as well as done the mapping as mentioned in the documentation?

          RightNow adapter at runtime, will automatically stream the MTOM attachment and stage it in ICS - and the file contents is accessed using the element GetFileDataResponse/attachment/attachmentReference

          https://docs.oracle.com/en/cloud/paas/integration-cloud/rightnow-adapter/mapping-downloaded-file-attachments.html

          If the above configurations are done correctly, next area you would want to focus upon, as you rightly mentioned, is how you send this attachment as payload to the external REST API.

          What is the content type for the request payload? is it multipart/mixed or multipart/form-data or application/octet-stream? or is the API expecting you to send the data as Base64 encoded binary?

          Configuration will vary depending upon the content type

          Ravi

    • Christopher Maggiulli
      Wow I was not seeing File Attachment as an operation. I am going to attempt this and then if nothing works im going to upload the iar. Thank you for the help.
      • Ravi Sankaran

        Hello,

        Apologies. I should have asked this question before.

        Are you on ICS or OIC?

        The above capability is available only in OIC

        Regards,

        Ravi

        • Christopher Maggiulli

          I am using customer managed Oracle Integration Cloud.  My production system is 18.2.3 and my test system is 18.2.5

          • Ravi Sankaran

            You should then be seeing this feature 

            did you get a chance to look at RightNow adapter design time wizard? Are you able to see the download attachment option?

            • Christopher Maggiulli

              Nope - I don't see it.  I'm running OIC 18.2.5.  Attached is what I see.  Operation type is only crud and roql

            • Christopher Maggiulli

              Any thoughts on why I am not seeing this?  I am using standard WSDL, type is specifying to 1.4.  I have this working a different way, but I'm wondering why I dont see what you see?

              • Rajeev Kumar

                File download option is  feature flag enabled, so can you please enable this feature "oic.cloudadapter.adapter.rightnow.fileDownload" on your server, if you are not able to enable this feature ask oracle support to enable this feature for you. once enabled you will able to see the File attachment option in the design time wizard.

                • Ravi Sankaran

                  Hello Customer,

                  my apologies

                  This feature is still under controlled availability

                  You can certainly have this feature enabled for your POD by filing a SR - providing the information about your identity domain, service instance as well as this feature id "oic.cloudadapter.adapter.rightnow.fileDownload" 

                  Ravi

    • poornima muthukrishnan

      Hi

      Is the Fileattachment Operation type available in the rightnow adapter? The link in this thread is not working anymore and the latest Righntow adapter document doesn't mention about the File Attachment operation. Can anyone confirm this please?

      https://docs.oracle.com/en/cloud/paas/integration-cloud/rightnow-adapter/mapping-downloaded-file-attachments.html