Hi @Rebecca Glasser The ContentVersion object will help you figure out if a File is a Chatter file or a file in Content/Libraries. Here is a link to the documentation:
https://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_contentversion.htmLook up the 'Origin' field. Here is the description:
The source of the content version. Valid values are:
C—This is a Content document from the user's personal library. Label is Content. The FirstPublishLocationId must be the user's ID. If FirstPublishLocationId is left blank, it defaults to the user's ID.
H—This is a Chatter file from the user's My Files. Label is Chatter. The FirstPublishLocationId must be the user's ID. If FirstPublishLocationId is left blank, it defaults to the user's ID. Origin can only be set to H if Chatter is enabled for your organization.
This field defaults to C. Label is Content Origin.
Each ContentVersion is part of a ContentDocument: the ContentDocumentId on the ContentVersion object will expose this relationship.
11 commenti