Reply
Contributor
Pawel Dudek
Posts: 3
0

SOQL ContentVersion and Content Packs

Greetings, 

 

I've been trying to implement a UI for the Content Packs feature that's available in CRM Content. I know that it's possible to get the ContentVersion objects that have FileType set to PACK and I have that already implemented. 

 

Now I'm having problems with getting the stuff that actually resides in the Content Pack itself. The documentation is very sparse here, if not to say there's not documentation, as Content Packs are mentioned twice, only in context that there's it's not the method to get these. They appear in ContentVersion ("Use the ContentDocument object to retrieve, query, update, and delete the latest version of a document, but not a content pack") and in ContentDocument ("Use this object to retrieve, query, update, and delete the latest version of a document, but not a content pack") and as you can see in the quotations there's nothing helpful there, unfortunately. 

 

So the question is: how, using SOQL, can I access and download files that are located inside a Content Pack?

 

Any help is appreciated!

 

 

Super Contributor
Jia Hu
Posts: 839
0

Re: SOQL ContentVersion and Content Packs

Based on doc of ContentDocument,

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

I guess this function is not open to API access yet.
Contributor
Pawel Dudek
Posts: 3
0

Re: SOQL ContentVersion and Content Packs

[ Edited ]

Well, it doesn't say anything about viewing - currently I don't need editing/creating/deleting of Content Packs - just view them. I hoped there'll be something for that... (as it's not mentioned in docs). 

 

Anyway, thanks for the answer!

Super Contributor
Jia Hu
Posts: 839
0

Re: SOQL ContentVersion and Content Packs

doc:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentversion.htm

Use this object to create, query, retrieve, search, edit, and update a specific version of a Salesforce CRM Content document or Chatter file. Use the ContentDocument object to retrieve, query, update, and delete the latest version of a document, but not a content pack, in a library or a file in Chatter.
Contributor
ruco
Posts: 3
0

Re: SOQL ContentVersion and Content Packs

Where you ever able to query the Content Pack?

Contributor
Pawel Dudek
Posts: 3
0

Re: SOQL ContentVersion and Content Packs

Unfortunately I haven't found a way to access any data from content packs (expect for their name, that is). As people above wrote, that feature is not yet available in SFQL. 

Contributor
ruco
Posts: 3
0

Re: SOQL ContentVersion and Content Packs

This is unfortunate, thanks for your quick response.

Visitor
nwooten
Posts: 3
0

Re: SOQL ContentVersion and Content Packs

This is a shame.  It sure is difficult to migrate content from one org to another for customers especially those that leverage content packs alot.