You need to sign in to do that
Don't have an account?

Query Salesforce Content object
Is it possible to query the Salesforce Content object? I have a need to build a vf page that allows the user to view content records and attach content to a specific contact record.
I'm currently trying to query the ContentVersion object and I'm not getting an error, but no content is getting displayed. I have added one piece of content and am simply trying to return that record in my query.
Thanks for any help!
What information are your trying to retrieve?
Here is a sample VF page i have and here is the controller
Let me know if this helps you or if you have questions let me know
All Answers
What information are your trying to retrieve?
Here is a sample VF page i have and here is the controller
Let me know if this helps you or if you have questions let me know
Thanks Eric! It appears to be a permission issue. I'm a system admin and I have selected "Salesforce CRM Content User" checkbox on my user record as well.
I was able to add a piece of content to my Personal Library and then I was able to successfully query that record. Do I have to be added as a member to other libraries in order to query the content?
Honestly, I am not sure, but based on my experience on working with content recently you have be a memeber.