function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RickoT1031RickoT1031 

Unable to use Content objects

I have updated to spring 10 but I am not able to access content objects (ContentDocument, ContentWorkspaceDoc, ect..) I am not sure why.

 

I just get an error stating that the object type is not supported...

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

Make sure the version of your apex code is set to v17 or v18

All Answers

SuperfellSuperfell

Make sure the version of your apex code is set to v17 or v18

This was selected as the best answer
RickoT1031RickoT1031

How can I verify that? If I go to help > about in eclipse and choose salesforce it shows v18... is there somewhere else to change the version of apex I am using?

RickoT1031RickoT1031

Ahhhh... I figured it out, I didnt realize that I had to update that kind of information.  I assumed that when Spring 10 came out sf automatically updated all of the apex classes to the new version.. Thank you for that I will bear that in mind for the future!