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
rubixtiousrubixtious 

Salesforce Content

Is it possible to use SOQL to query Content objects?  Specifically, I want to provide a dynamic link on a page to a document in content.
mikefmikef

Yes ContentDocument is the object that you would query to get content objects.

 

select Id, CreatedById, CreatedDate, LastModifiedById, LastModifiedDate, IsDeleted, OwnerId, SystemModstamp, Title, PublishStatus, LatestPublishedVersionId from ContentDocument