Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ContentDownloadContext Enum

This enum specifies the download context.

Usage

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.

Enum Values

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.

Value Description
CHATTER Download from Chatter.
CONTENT Default value. Downloads from the Salesforce CRM Content product.
DELIVERY Download of a content delivery.
REST_API Download from the Connect API (/connect/files/${fileId}/content endpoint). Used in both Android and iOS apps.
RETRIEVE Retrieve VersionData from SObject API.
S1 Download from Lightning Experience.
SOQL Select VersionData from SOQL.