AiondaAionda

Formula reference · Record context and compatibility

ATTACHMENTCOUNT

Return the current record’s attachment count.

English · 23 November 2026

Review edition — editorial review is not yet complete.

Back to the function catalog

What it does

Return the current record’s attachment count.

Syntax

ATTACHMENTCOUNT()

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: Number.

Worked examples

Example 1

Example context: the current record has 3 attachments.

Formula

ATTACHMENTCOUNT()

Result

3

Quotes 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: ANZAHL_ANHAENGE remains valid in existing formulas. Use ATTACHMENTCOUNT 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.