What it does
Test whether the current record has at least one attachment.
Syntax
HASATTACHMENTS()Square brackets mark optional arguments; omit the brackets. Separate arguments with commas, quote text and use a point for decimals.
Arguments, in order
No arguments. Keep the empty parentheses ().
Returns: Boolean (true/false).
Worked examples
Example 1
Example context: the current record has 3 attachments.
Formula
HASATTACHMENTS()Result
trueQuotes in the result indicate text; \n indicates a newline. Date results use ISO notation. The application may display dates and numbers differently according to the selected field type and interface language.
Compatibility: HAT_ANHAENGE remains valid in existing formulas. Use HASATTACHMENTS in new formulas, regardless of interface language.
Behaviour and limits
The example uses a current record with three attachments. A context without an attachment count returns 0 or false; these functions do not count File/Image fields.
Use it with your fields
Replace example values with the relevant field API names when needed. A record formula uses names such as amount; a flow expression uses its context, such as $Datensatz.amount. Use your actual API names and a compatible return type. See expression basics and flows.

