Newer Version Available
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 create, edit, or delete 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 |
|