I'm trying to download content versions through Rest API. I am not able to download content packs (FileType = 'PACK'). However, the same could be done through Salesforce web which downloads as a zip file. How can this be done through Rest API? The content document api doc says that

You can't create, edit, or delete content packs via the API.

But it means that you can query and retrieve the contents. The content size when queried is 0. How can I retrieve the data for content packs?


1 Answer 1


As per How can you interrogate the contents of a Content Pack using Apex and SOQL? I don't believe this is currently possible via the APIs.

The content pack isn't actually stored in Salesforce. It is created as required from the pack ContentVersions. Hence the size of 0 on the actual pack.

If you could query via the API for which files make up the content pack then you could pull each one down independently. Consider voting for Show Where Content is Used in Content Packs or Deliveries to achieve this.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .