Create Static Resource
sf_create_static_resourceCreate Salesforce static resources by providing text, JSON, JS, or CSS content. Deploys via Metadata API to serve files through CDN URLs.
Instructions
Creates a Static Resource from text/JSON/JS/CSS content. Static Resources are files stored in Salesforce and served via a CDN URL — ideal for JavaScript libraries, CSS stylesheets, JSON configuration, or any other file that needs to be served from Salesforce. Content is provided as a string and deployed via the Metadata API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The file content as a string (text, JSON, JS, CSS, etc.) | |
| fullName | Yes | Static resource API name, e.g. 'MyLibrary' | |
| contentType | No | MIME type, e.g. 'application/json', 'text/css', 'application/javascript' | text/plain |
| description | No | Description of this resource | |
| cacheControl | No | Cache control setting | Public |