You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Examples of uploading a file returned as response from previous invoked service

edited Mar 21, 2018 7:00AM in Integration 7 comments

Summary

Examples of uploading a file returned as response from previous invoked service

Content

I have a webservice running on a Coldfusion system that returns the following payload

 

{

     "FileAttachments":

          [

                    {"FileID":952391.0,  "CreatedTime":1.521122663E9,  "FileOfType":"application/pdf", "FileContentInBase64":"...."},

                    {"FileID":952311.0,"CreatedTime":1.521122663E9,"FileOfType":"application/pdf","FileContentInBase64":"...."}

          ],

          [

                    {"FileID":951391.0,  "CreatedTime":1.521122663E9,  "FileOfType":"application/pdf", "FileContentInBase64":"...."},

                    {"FileID":152391.0,"CreatedTime":1.521122663E9,"FileOfType":"application/pdf","FileContentInBase64":"..."}

          ]

 

}

 

The attribute FileContentInBase64 contains the file in base64 encoding. 

 

Now, I want to upload these files to a process in integration+process cloud.  The web service for process cloud has the following info:

 

endpoint: /ic/api/process/v1/processes/{processId}/attachments

request payload:

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!