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
ccPeterccPeter 

How to lookup the Content Type of a ContentWorkspace (library)?

Once you learn the id of a library's Content Type (for example, the DefaultRecordTypeId in ContentWorkspace), how do you look up the actual Content Type information? I would have expected an entity named ContentType that can be queried but that does not seem to exist.

 

Thank you in advance for an answer.

 

Peter

Best Answer chosen by Admin (Salesforce Developers) 
ccPeterccPeter

As it turns out Content Types are repesented by RecordType with SobjectType equal to "ContentVersion".