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.
ContentAsset
Represents a Salesforce file that has been converted to an asset file
in a custom app in Lightning Experience. Use asset files for org setup and configuration.
Asset files can be packaged and referenced by other components. This object is
available in API version 38.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
- Only admin users can edit or delete ContentAssets.
- Users with file access can create and query ContentAssets.
- It isn’t necessary to create asset files for regular, collaborative use of Salesforce Files. “Assetize” files only when they’re used in setup and configuration situations.
- Neither the file (ContentDocument) nor the asset settings record (ContentAssets) can be deleted if the asset file is referenced by another component.
- ContentAsset doesn’t support search or most recently used (MRU) lists.
- ContentAsset doesn’t support Apex triggers.
Fields
| Field | Details |
|---|---|
| ContentDocumentId |
|
| DeveloperName |
|
| IsVisibleByExternalUsers |
|
| Language |
|
| MasterLabel |
|
| NamespacePrefix |
|