Examples of uploading a file returned as response from previous invoked service
Summary
Examples of uploading a file returned as response from previous invoked serviceContent
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: