Skip to main content

Insert Record

Use the Insert Record step to create a new record in any BC table from inside a flow. You point the step at a target table, list the field values you want to set, and the step writes the record and exposes it as an output for the rest of the flow.

A typical pattern: an upstream Parser step pulls values out of an HTTP response, then Insert Record turns those values into a customer, sales line, or whatever the table happens to be. Field values can be plain text or SmartFields like {{customerNo}} that are resolved against the flow's context when the step runs.

Configure the step​

Open the flow editor, add Insert Record, and fill in the configuration card.

Description​

  • Purpose: Make it clear which record this step creates.
  • When to fill it: Always. The description shows up in the editor and the execution history.
  • Tips: Name the table and the source, for example Create customer from CRM payload.

Table​

  • Purpose: The table to insert the record into.
  • When to fill it: Required. Pick from the standard table lookup.
  • Tips: Changing the table resets the Field Values list below and prefills it with one empty row per primary-key field, so you can drop in the key values right away.

Run Triggers​

  • Purpose: Decide whether BC's standard insert logic runs around the new record — its validations and the table's OnInsert trigger.
  • Options:
    • On (default) — full BC behaviour. Validations fire, defaults are applied, and BC fills in the SystemId (and any other auto-generated key) for you.
    • Off — the record is written as-is. Useful for raw imports where you take responsibility for the values yourself.

Template​

  • Purpose: Optional. Pre-fill the new record from a template, so you only list the fields that differ.
  • Which templates: For customers, vendors, items and employees the lookup shows Business Central's own templates – the ones you also see when you create a new customer from a template. For every other table it shows RapidStart Configuration Templates for that table. The field is hidden while no template exists for the table.
  • What a customer, vendor, item or employee template brings along: the template's field values, its default dimensions, and for items the base unit of measure. If the template has a number series and you don't set the number under Field Values, the new record gets its number from that series.
  • Tips: Anything you list under Field Values wins over the template: the template only fills fields that are still empty after your values and the insert logic ran. A customer, vendor, item or employee template is applied with Business Central's standard logic, so the table's modify logic runs even when Run Triggers is off.

Field Values​

A row-numbered list of (Field, Value, Validate, Optional) rows. Each row writes one field on the new record.

  • Field — pick from the configured table. Obsolete fields are filtered out. Blob, Media (single image), and the like are supported as targets — see Binary fields below.
  • Value — plain text. SmartFields like {{customerNo}} are resolved against the flow's context when the step runs. The resolved text is converted into the field's data type (Integer, Decimal, Date, Option, Guid, …) before it is written; an unparseable value ("abc" into a Decimal field, for example) stops the flow with an error. Use the AssistEdit button on the Value column to open a multi-line editor for longer inputs. For a field with a fixed list of values (a status, a type, a document type) the cell lists the allowed values instead and offers three modes – a fixed value, SmartText, or rules that pick the value by condition; see Enum values.
  • Input Format — optional. Tells the step how to read the value text when it doesn't follow your regional notation — see Input format below.
  • Validate — when on, the value runs through the field's standard BC validation. When off, the value is assigned directly. Validations fire in row order, so a row that depends on another row running first should come later. Ignored for binary targets.
  • Optional — off by default. When on, the row is skipped if its value turns out to be empty when the step runs, instead of writing an empty value or stopping the flow — see Optional fields below.

Input format​

Numbers and dates read from an XML or JSON file usually arrive in the file's notation, not yours. On a German-region system, 1000.00 from an XML invoice is read as one hundred thousand (the dot counts as a thousands separator), and a compact date like 20260716 doesn't parse at all. The Input Format column fixes both: it pins down how the value text is interpreted, independent of the region the flow happens to run under.

Input FormatUse forExample value
(empty)Values already in your regional notation — the default, nothing changes1.000,00 on a German system
9 or xmlXML/JSON notation for numbers, dates, times, and booleans1000.00, 2026-07-16, true
A date/time pattern, e.g. yyyyMMddCompact or fixed-layout dates and times20260716, 16.07.2026 with dd.MM.yyyy

Patterns are built from the tokens yyyy, yy, MM (month), dd, HH, mm (minute), ss — each digit group has a fixed width — plus literal separators like . or - that must appear in the value exactly as written. Patterns work for Date, Time, and DateTime fields only.

A value that doesn't match the configured format stops the flow with an error naming the value, the field, and the format. There is no silent fallback to your regional notation — that's deliberate, because a half-parsed number that happens to look valid is worse than a stopped flow.

Binary fields (Blob, Media)​

You can drop a SmartField placeholder into the Value cell of a Blob or Media field — typically a token like {{pdfBody}} produced by an upstream HTTP step that fetched a file. The step writes the bytes straight into the target field; no extra step or decoding configuration is needed.

The step accepts three shapes:

  1. A SmartField that carries binary content (e.g. an HTTP step's response body, or a Document step output). The bytes are written as-is.
  2. A SmartField that carries base64 text (e.g. {{base64pdf}} produced by a Parser). The text is decoded and the resulting bytes are written.
  3. Literal text in the Value cell. If the text is valid base64, it is decoded; otherwise the raw text is written into the field as UTF-8 bytes.

Tip: when fetching a file from a remote service, prefer the HTTP step's binary-body output (option 1). It avoids an unnecessary base64 round-trip and works with any payload size.

Record ID fields​

Some tables link to another record through a field of type Record ID — for example an assignment or log table that can point at any record. To fill such a field, put a single record reference in the Value cell: {{rec}} from an earlier Insert Record step, or {{results}} from an earlier Find Records step (this picks the first found record). AutoFlow assigns the referenced record directly.

Anything else — literal text, or a SmartField that resolves to text — stops the flow with a conversion error, because a Record ID cannot be built from text.

Optional fields​

Turn on Optional for rows whose value may be missing — for example a date or a name that an upstream Parser or OCR step does not always find. If the value of such a row is empty when the step runs, the step leaves the field alone and carries on. On Insert Record, the field keeps the value from the configuration template or the table's default. The step's debug log notes each skipped field, so you can see what was left out.

An empty value is skipped for every field type, so it never runs into a type-conversion error. Some types also have their own "blank" value that counts as empty:

Field typeAlso skipped when the value is
Date, Time, DateTimea blank date/time (0D, 0T, 0DT)
Guidthe empty Guid
Record IDa reference that cannot be found
Blob, Mediaa file with no content

For Integer, Decimal, Boolean, Option and Duration fields only an empty value is skipped. An explicit 0 or false is written, because it can be exactly the value you want. A value that is not empty but cannot be read ("abc" into a Date field, for example) still stops the flow, even when the row is optional.

Outputs​

NameTypeMeaning
recReferenceThe inserted record. Use it as a SmartField reference downstream — for example as the Reference input of a follow-up Modify Record or Delete Record step.

Notes​

  • Auto-generated keys. With Run Triggers on, BC fills in the SystemId and any auto-incrementing keys for you. Leave the corresponding rows empty in the Field Values list, or remove them if you don't need to pin a specific value.
  • Trigger-initialized fields override your values. With Run Triggers on, the table's insert logic runs after your field values are applied — and on documents it stamps fields like Document Date, Order Date, and Posting Date with the work date, overwriting whatever you set (in any format). Set such fields in a follow-up Modify Record step on this step's rec output instead; on a modify, no insert initialization runs and dependent fields (like Due Date) are recalculated consistently.
  • Field order matters. With validations on, validating one field can overwrite another. Order your rows so the value you want to win comes last.
  • Permissions. The step runs under the permission set of the user who activated the flow — there are no dedicated permissions for the step itself.