ContentWorkspaceDoc
SELECT COUNT(ContentWorkspaceId) FROM ContentWorkspaceDoc group by ContentWorkspaceId
Error: "Grouped field should be aggregated: ContentWorkspaceId"
Is there any efficient way to check the count of documents in each library without querying for their counts individually?
As there are limits: 2000 libraries, or 50,000 documents per library one would assume it'd be possible to check these to maintain a large cache of documents!
Additionally is it possible to create new ContentWorkspace
records from APEX?
insert new ContentWorkspace(Name='Whatever');
Field is not writeable: ContentWorkspace.Name