Search Content on External Storage Action
Searches content stored in files, including images, audio recordings, video footage, and PDF documents that are stored in external storage systems, and returns matching files with specific citations.
This action is available in API version 68.0 and later.
This action searches files by meaning, not just exact keywords. For example, a query for “fled” can also return files that mention “absconded” or a video where someone says “ran away.” Use it from a flow, an Agentforce agent, or REST API. The Search Files agent action calls this invocable action. For the related Connect REST API, see Search External Storage (POST).
To access the Search Content on External Storage action, External Storage Search must be enabled in your org, and the user must have the Search Files in Amazon S3 system permission. For details, see External Storage Search Prerequisites.
URI: /services/data/vXX.X/actions/standard/invocableCallContentSearch
Where XX.X is the latest API version.
Formats: JSON
HTTP Methods: GET, POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is a variable.
| Input | Type | Description |
|---|---|---|
recordId | ID | Required. The ID of the Salesforce record that scopes the search to associated files, such as a case, complaint, or inspection. |
relevanceScore | Double | The minimum relevance score used to filter results, from 0.0 to 1.0, where 1.0 is the most relevant. |
searchQuery | String | Required. The natural-language search query to run against files stored in Amazon S3. Must contain 1 to 4,096 characters and can’t be empty. |
| Output | Type | Description |
|---|---|---|
hasMore | Boolean | Indicates whether more pages of results are available beyond the current page. |
nextSearchHandle | String | Opaque pagination token from the current page of results. Use this value to retrieve the next page of results. |
results | String | JSON string that contains the matching files for the current page, ordered by relevance. Each result can include the document title, excerpt, relevance score, source URL, content type, associated ContentDocument IDs, page number, and media timestamps. For the result structure, see External Storage Search Result. |
totalResults | Integer | Total number of matching documents across all pages. |
GET
This example shows how to get the details of the Search Content on External Storage action type.
POST
Here’s a request for the Search Content on External Storage action.
Here’s a response for the Search Content on External Storage action.
See Also