Get Flow Errors and Fault Logs
sf_get_flow_errorsDiagnose Salesforce Flow runtime errors by retrieving interview fault records with fault messages and triggering record IDs. Filter by flow, lookback hours, and result limit for targeted insights.
Instructions
Retrieves Flow interview fault records from the FlowRecordRelation and FlowInterview objects. Shows flows that have errored in runtime with their fault message and the record that triggered the error.
flowApiName: filter to a specific flow API name (optional — returns errors for all flows if omitted) lookbackHours: how many hours back to search (default: 24, max: 168) limit: maximum records to return (default: 50)
Returns: flow name, start time, error message, and related record ID for each fault.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum error records to return | |
| hoursBack | No | Look back this many hours for errors | |
| flowApiName | No | Filter to a specific flow API name (optional) |