For the complete documentation index, see llms.txt. This page is also available as Markdown.

Field & Table Manipulation Cards

Field & Table Manipulation Cards - Complete Guide

Covers: 9 cards for modifying document fields and tables


The field and table cards on this page go in the Then group of the Workflow Builder — the actions that run once the When/And conditions match:

Workflow Builder canvas with When, And and Then card groups
Field and table manipulation cards are added to the Then group via Add Card.

📌 Version Information

Multi-Version Cards: CALC_COLUMNS (v2), CALC_COLUMNS_REGEX (v2), EDIT_COLUMN (v2), AI_CALC_MTZ_ETZ (v2)

Version Pattern: All field manipulation cards follow v1 → v2 pattern Key Change: v2 adds internationalization (i18n) support with translation keys

📖 Complete Version History | Card Version Database


Document Field Manipulation

Card: ACTION_SET_FIELD_TO_TEXT / Set Field to Text Value

Purpose

Automatically fills a document field with specific text

When to Use

  • Populate field from decision

  • Set default values

  • Fill in standardized information

  • Update field based on conditions

How It Works

Example Scenarios

Scenario 1: Set Approval Category

Scenario 2: Set Supplier Category

Scenario 3: Set Processing Notes

Parameters

Field Name Which field to update

Text Value What to put in the field

Configuration Steps

  1. Choose the field to fill

  2. Enter the text value

  3. Set conditions (when to fill)

  4. Save


Card: ACTION_SET_BOOLEAN_FIELD / Set Checkbox Field

Purpose

Automatically checks or unchecks a checkbox field

When to Use

  • Mark as processed

  • Set approval flags

  • Enable/disable options

  • Mark for export

How It Works

True = Checked, False = Unchecked

Examples:

Example 1: Mark as Verified

Example 2: Flag for Manual Review

Example 3: Uncheck Pre-filled Box

Parameters


Card: ACTION_INVERT_BOOLEAN_FIELD / Toggle Checkbox

Purpose

Flips checkbox state (checked → unchecked, vice versa)

When to Use

  • Toggle approval status

  • Switch processing mode

  • Reverse previous state

  • Update boolean flags

How It Works

Example


Card: ACTION_COPY_DOCFIELD_TO_DOCFIELD / Copy Field Value

Purpose

Copies value from one field to another field

When to Use

  • Copy supplier info to billing info

  • Duplicate data across fields

  • Standardize data format

  • Create backup of value

How It Works

Real Examples

Example 1: Copy Delivery Address

Example 2: Copy Supplier Code

Example 3: Copy Amount for Validation

Parameters

Notes

  • Original field unchanged

  • Target field overwritten with source value

  • Good for standardizing data


Table Manipulation

Card: EDIT_COLUMN / Edit Table Column

Purpose

Changes values in a table column based on conditions

When to Use

  • Fix pricing errors in line items

  • Update quantities

  • Correct item descriptions

  • Standardize values

How It Works

Example: Fix Pricing

Scenario: Prices in wrong currency

Parameters

Common Uses

  • Fix unit prices

  • Standardize descriptions

  • Correct quantities

  • Update SKU numbers


Card: CALC_COLUMNS / Calculate Column Values

Purpose

Performs calculation on table columns and stores result

When to Use

  • Calculate line totals (Qty × Unit Price)

  • Sum columns

  • Calculate discounts

  • Compute percentages

How It Works

Calculation Types

Type 1: Simple Multiplication

Type 2: Addition

Type 3: Percentage Calculation

Type 4: Subtraction

Real-World Example

Invoice Line Items Calculation:

Parameters


Card: CALC_COLUMNS_REGEX / Calculate with Regex Pattern

Purpose

Calculates column values based on pattern matching

When to Use

  • Extract values from text using patterns

  • Format data based on rules

  • Convert values based on patterns

  • Parse structured text

How It Works

Regex Pattern Matching:

Example: Extract Supplier Code

Scenario: Article numbers contain supplier info

Example: Format Phone Numbers

Scenario: Unformatted phone numbers

Example: Extract Prices from Text

Scenario: Prices in text format

Parameters

Common Regex Patterns


Calculation Examples

Example 1: Invoice Total Calculation

Example 2: Variance Calculation

Example 3: Discount Application


Field Manipulation Workflow Example


Best Practices

✅ Do:

  • Keep formulas simple

  • Test calculations with sample data

  • Verify results make sense

  • Document why you're changing fields

  • Use copy field when data is same

❌ Don't:

  • Create circular references (A=B, B=A)

  • Overwrite important data without reason

  • Create overly complex regex patterns

  • Forget to verify calculation results

  • Calculate on wrong table/columns


Troubleshooting

"Field not updating"

Cause: Condition not met or card not triggered

Solution:

  • Check condition is true

  • Verify card is in workflow

  • Test with sample data

  • Check for typos in field name

"Calculation result wrong"

Cause: Wrong columns selected or formula incorrect

Solution:

  • Verify source columns

  • Check formula is correct

  • Test manually

  • Review decimal places/rounding

"Table shows error"

Cause: Referenced column doesn't exist

Solution:

  • Verify column name spelling

  • Check column has data

  • Ensure column data type matches calculation

  • Add missing columns if needed


  • ACTION_COPY_DOCFIELD_TO_DOCFIELD - Copy values

  • EDIT_COLUMN - Change table values

  • CALC_COLUMNS - Calculate formulas

  • ACTION_SET_FIELD_TO_TEXT - Set text values

  • ACTION_SET_BOOLEAN_FIELD - Check boxes

Last updated

Was this helpful?