As far as I can see in the documentation, dataloader.io only supports exporting Attachments rather than Files.


Based on this (What is the object that stores "files") it seems like ContentVersion.VersionData is the equivalent to Attachment.Body for downloading Files.

It looks to me like since ContentVersion is in the list for Dataloader.io. I can't test this myself as the user that I am accessing for this has limited access, so can't simply create a file.

Can anyone confirm that they have successfully exported Files from a Salesforce Org using the ContentVersion object?


Hi @frackham, you can export the files using contentversion object but only problem is versiondata you will get is in blob datatype. But in attachment you are getting it as zip file. That's the difference. That you may be not wanting.

enter image description here

| improve this answer | |
  • No problem with blob (not my preference, but I can work with that). – frackham Aug 20 '18 at 14:12
  • Just to clarify, when you say 'export the files' you mean Files, and not export the Attachments? My use case is that I want to export Files, not Attachments via a different route :) – frackham Aug 20 '18 at 14:13
  • Files in Salesforce refers content Object. ContentVersion will give you the files only, Not the attachment. But in your query, do remember to use islatest=true. If not, you can have multiple version of the same file. – sanket kumar Aug 20 '18 at 14:18
  • If you are not concerned about the version data, better to go with the ContentDocument object. ContentVersion is related to ContentDocument. – sanket kumar Aug 20 '18 at 14:20
  • Great, thanks :) – frackham Aug 22 '18 at 10:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.