Update attachment
The action changes the metadata (name, description, and category) of attachments already present on the workflow instance.
Basic configuration
The Basic tab of the Properties panel contains settings shared by every action in an automation: the Active toggle, the Action type field, the Documentation field, the Use action template toggle (when enabled, the action takes its configuration from the selected action template defined in the process), the Execution condition section (decides whether the action always runs or only when a custom rule is met), and the Runtime error handling section (the message and numeric error code returned when the action fails to execute). Since these settings are not unique to the Update attachment action, they are described in detail in the Actions chapter.

Advanced configuration
The Advanced tab contains fields specific to this action, grouped into sections: Attachments to be processed and Attachment's data.

1. Attachments to be processed
The Based on field determines how the attachments to be updated are selected:
- Category - attachments are selected based on their assigned category.
- Regular expression - attachments are selected using a regular expression matched against the file name.
- Data source - attachments are selected using a query returning a list of identifiers.
For the Category mode, two additional fields are available:
- Category — the category of attachments taken into account:
- All - attachments belonging to any category are taken into account.
- Dynamic - selecting this option makes the Dynamic expression field available, where the category is built dynamically (using the rule editor) or entered manually, in the format
ID#Nameor justID. - None - attachments not belonging to any category are taken into account.
- Select — which of the matching attachments will be updated:
- The oldest attachment - only the earliest added attachment will be updated.
- The newest attachment - only the most recently added attachment will be updated.
For the Regular expression mode, the Regular expression field is available, built manually or with the help of the variable editor.
For the Data source mode, the SQL query field is available, where a query returning a list of attachment identifiers from the "WFDataAttachmets" table should be provided.
2. Attachment's data
The section determines which metadata of the selected attachments will change:
- Change name - once enabled, the Name field becomes available, where a new attachment name can be entered (it can be built dynamically with the rule editor).
- Change description - once enabled, the Description field becomes available, where a new attachment description can be entered (it can be built dynamically with the rule editor).
- Category — the attachment category update mode:
- Unchanged - the attachment's category will not be changed.
- Dynamic - once selected, the Dynamic category field becomes available, where a new category can be provided, built dynamically with the rule editor or entered manually, in the format
ID#Nameor justID. - None - after the action runs, the attachment will not belong to any category.