Skip to main content

Enum values

Many Business Central fields only take a value from a fixed list – a document Status (Open, Released, Pending Approval …), a sales line Type, a Document Type. Wherever a step sets or filters such a field, AutoFlow shows the list instead of a plain text box, so you never have to know or type the value names. The allowed values are always visible.

You choose how the value is set with the small switch on the field:

ModeUse it whenWhat you enter
FixedThe value is always the samePick it from the dropdown
SmartTextThe value comes from earlier in the flowA SmartField or text – the allowed values are listed underneath
RulesThe value depends on a conditionOne row per condition, plus an optional Otherwise

Switching between the modes keeps what you entered in each of them, so you can try Rules and go back to Fixed without losing anything. Only the mode that is selected when you save is used when the flow runs.

Fixed​

Pick the value from the dropdown. AutoFlow stores the value itself, not the caption you see, so a flow set up in German runs unchanged for a user working in English.

SmartText​

Type a value or insert a SmartField, for example {{trigger_Status}}. The list under the field shows the allowed values. Both the caption you see in Business Central and the value name are accepted (Freigegeben and Released both work), as is the value's number.

When the flow runs and the text is none of the allowed values, the flow stops with an error that names the value and lists the allowed ones – for example 'Shipped' is not a value of Status. Allowed: Open, Released, Pending Approval.

Rules​

Each rule is a SmartFilter condition and the value to use when it is true. Click the condition to open the SmartFilter builder. The rules are checked from top to bottom and the first rule whose condition is true wins – reorder them with the arrows.

Otherwise is the value used when no rule matches. Leave it empty and a field that no rule matches is left as it is: Insert Record keeps the field's default value, Modify Record and Set field values don't touch it, and a filter in Find Records is not applied. Choose an Otherwise value when the field must always be set.

Example – a sales order's status depending on its amount:

ConditionValue
{{trigger_Amount}} > 10000Pending Approval
{{trigger_Amount}} > 0Released
OtherwiseOpen

In a list of field values (Insert Record, Modify Record, Set field values, Find Records filters) the rules of a row open in a separate window; the cell shows a short summary such as 2 rules, otherwise Open.

Conditions can use everything the flow knows when the step runs – the trigger record and the outputs of earlier steps. A rule whose condition or value is missing never matches; the status line of the step configuration points it out before you save.

Where you find it​

  • Insert Record and Modify Record – the Value of a field-value row whose field is a list field.
  • Set field values in Record Created or Modified and Document Released flows – likewise.
  • Find Records – the Filter of a field-filter row whose field is a list field. In Fixed and Rules mode the records are filtered on exactly that value. To filter on several values at once, use SmartText and a filter expression such as Open|Released.

Rows that existed before keep their text and open in SmartText mode, so existing flows work exactly as before.