ContentDownloadContext Enum

This enum specifies the download context.

If the operationContext is CONTENT, CHATTER, DELIVERY, S1, or MOBILE, it can be used in a shepherd servlet as a query parameter. It’s possible for a user to change the query parameters. If a user enters a value other than CONTENT, CHATTER, DELIVERY, S1, or MOBILE, the value is treated as the default value CONTENT.

Users can’t set query parameters to REST_API, SOQL, or RETRIEVE, so these values can be assumed to be accurate.

The Sfc.ContentDownloadContext enum value identifies the content download context. The enum value is provided as a query parameter in the file download servlet. The following are the values of the Sfc.ContentDownloadContext enum.

ValueDescription
CHATTERDownload from Chatter.
CONTENTDefault value. Downloads from the Salesforce CRM Content product.
DELIVERYDownload of a content delivery.
REST_APIDownload from the Connect API (/connect/files/${fileId}/content endpoint). Used in both Android and iOS apps.
RETRIEVERetrieve VersionData from SObject API.
S1Download from Lightning Experience.
SOQLSelect VersionData from SOQL.