I have requirement to upload files to SFDC attachments object. I am making REST call from my Java code to SFDC with required details.
curl -X POST \
https://ap.salesforce.com/services/data/v29.0/sobjects/Attachment/ \
-H 'authorization: Bearer sessionId' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"ParentId":"00T0K0000243CvXXX",
"Name":"Test123.txt",
"body":"base64Coded"
}'
But above REST call support only single Attachment at a time. Is there any way I can upload multiple files in a single shot. Or can we leverage SFDC Bulk API anyhow?
You can insert or update blob data using a non-multipart message, but you are limited to 50 MB of text data or 37.5 MB of base64–encoded data.