Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
TRF
Champion II
Champion II

Upload content (files) into Salesforce using ContentVersion object

Hi,
Has anyone ever tried to upload content into Salesforce using ContentVersion object?
 
Using DataLoader, you have to activiate the "Upload Bulk API as Zip File (enable to upload binary attachments)" option and it works fine.
With this option activated, DataLoader automatically construct a zip file in which you can found:
- 1 file per document to load with the name "#attachment_000", "#attachment_001" and so on
- 1 file called "request.txt" corresponding to the input csv file with the content of the field VersionData has been changed to the corresponding entry in the archive file (#attachment_001 for example)
 
In tSalesforceOutptuBulkExec (TOS 6.3.1), this option doesn't exists in the settings and trying to run the job with the same input csv file produce the following error message (catched on Salesforce side):
InvalidBatch : Binary field VersionData is only supported for content types ZIP_XML and ZIP_CSV
Thank's.
 
Labels (5)
11 Replies
VRagothaman
Contributor
Contributor

Thank you for the info, But I want to upload the files using talend not using Data loader.

larasc
Contributor
Contributor

Hi all, I'm attempting to do exactly as the original post detailed to upload photos for Contacts via ContentVersion object. I have successfully tested via DataLoader. In Talend, I think I'm having trouble with the part where it needs to be zipped/encoded properly. When I send to Salesforce, it looks to me like Salesforce doesn't recognize it as a zip and so it fails when trying to read it. Has anyone had success and can provide additional details? Thanks