smartsuite_move_attachments
Move or copy attachments from one file field to another in SmartSuite records. Supports single record or batch, with append or replace modes and a dry-run preview.
Instructions
Move attachments (files) from one file field to another. Requires readwrite/admin mode. Copies the source field's files into the target field (handles reference existing storage — no re-upload) and clears the source. Target one record with recordId, or every record that has source files with allRecords:true (capped at SMARTSUITE_MAX_RECORDS). mode "append" (default) keeps the target's existing files; "replace" overwrites. Set clearSource:false to copy instead of move. Both fields must be filefield type. Dry-run preview unless confirm:true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | append (default) keeps target's existing files; replace overwrites the target. | |
| confirm | No | Must be true to apply (default false = preview). | |
| recordId | No | Move for a single record (omit to use allRecords). | |
| allRecords | No | Move for every record that has source files (capped at SMARTSUITE_MAX_RECORDS). | |
| clearSource | No | Clear the source field after copying (default true = move; false = copy). | |
| applicationId | Yes | The application (table) ID. | |
| sourceFieldSlug | Yes | File field slug to move attachments FROM. | |
| targetFieldSlug | Yes | File field slug to move attachments TO. |