StaticResource
Stores static files, such as images, stylesheets, and JavaScript, for use in Visualforce and Lightning applications.
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
Unique identifier for the static resource record, used for referencing and management within the metadata framework. | |
| NamespacePrefix | String | True |
Prefix identifying the managed package to which this static resource belongs; blank if the resource is unmanaged. | |
| Name | String | False |
Developer-friendly name used to reference the static resource in code, such as in Visualforce pages or Lightning components. | |
| ContentType | String | False |
Multipurpose Internet Mail Extensions (MIME) type of the resource content, such as application/javascript, text/css, or image/png, which informs the browser how to process the file. | |
| BodyLength | Int | True |
Size of the static resource in bytes, useful for monitoring storage usage and optimization strategies. | |
| Body | String | False |
Encoded content of the static resource, stored as a binary string and retrievable through the API or UI. | |
| Description | String | False |
Optional descriptive text providing context, versioning notes, or usage instructions for developers and admins. | |
| CreatedDate | Datetime | True |
Timestamp indicating when the static resource was originally created, aiding in change tracking and auditability. | |
| CreatedById | String | True |
User.Id |
Identifier of the user who created the static resource, essential for tracing ownership and responsibility. |
| LastModifiedById | String | True |
User.Id |
Identifier of the user who last modified the resource, providing traceability in collaborative development environments. |
| CacheControl | String | False |
Defines how the resource is cached by browsers and proxies, with options such as 'Public' or 'Private' to control client-side caching behavior and performance optimization. | |
| SOQL | String | False |
Specifies the SOQL query to execute against the Salesforce servers. If this pseudo column is set from the WHERE clause it will take precedence over the original query. | |
| ExternalIdColumn | String | False |
Specifies the external Id column to use if performing an insert. If this value is specified, upsert will be used when the INSERT command is called. | |
| FilterScope | String | False |
Optional scope to limit the records returned from queries. This property can take one of these values: Delegated, Everything, Mine, MineAndMyGroups, My_Territory, My_Team_Territory, or Team. | |
| SystemModstamp | Datetime | True |
System-generated timestamp reflecting the latest change from any source, used to ensure data consistency across systems. | |
| LastModifiedDate | Datetime | True |
Timestamp indicating the most recent update to the resource, critical for synchronization and deployment practices. |