Workflows: file handler add
workflows_file_handler_addAdd a FileHandler step to a workflow with named flags to fetch, link, or detach files, avoiding hand-written params JSON.
Instructions
Add a FileHandler step with named flags (no hand-written params JSON)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Step display name (defaults to the step key) | |
| field | No | Field name on the record to link the file to (required, snake_case) | |
| start | No | Set as start step | |
| entity | No | Target entity name (required) | |
| enabled | No | Enable step immediately | |
| step_key | Yes | Step key (unique identifier, snake_case) | |
| file_name | No | Filename to store the uploaded file as (templatable) | |
| folder_id | No | Folder ID to upload the file into (optional, templatable) | |
| is_public | No | Mark the uploaded file as public | |
| link_mode | No | How to link to the field: set (single value) or add (append to multi-value). Default: set | |
| operation | No | FileHandler operation: fetch_and_link, link_existing, detach | |
| record_id | No | Target record ID, typically '{{ $anythink.trigger.id }}' (required) | |
| on_failure | No | Step ID to execute on failure | |
| on_success | No | Step ID to execute on success | |
| source_url | No | URL to fetch the file from (required for fetch_and_link; supports templating) | |
| workflow_id | Yes | Workflow ID | |
| existing_file_id | No | Existing file ID (required for link_existing operation; templatable) | |
| overwrite_if_present | No | Re-process even if the field already has a value (idempotency override) |