Skip to content

Update rows

Description

The Update Rows activity modifies existing records in a database table by matching input rows (from previous activities) with existing records using specified key columns. The updates are made by mapping input columns to table columns through a column mapping configuration.

Use this activity when you want to sync changes from processed data back into your database, such as updating employee salaries, product inventory, or transaction statuses.

Use case:
After recalculating employee bonuses in a prior transformation, use Update Rows to write those updated amounts back to the HR database table using the Employee ID as the unique key.


Input

Input TypeFormatDescription
DataTableTabular data where each row represents a record to be updated.

Output

Output TypeFormatDescription
DataTableUpdated rows from the database table.

Configuration Fields

Field NameDescriptionRequired
ConnectionSelect or configure the database connection. This is used to authenticate and access the table to be updated. Supports SQL-compatible sources.Yes
TableName of the database table where rows should be updated. Must exist within the connected database.Yes
Key ColumnsOne or more columns that uniquely identify rows in the table (e.g., ID, Email). Used to match input records with existing rows.Yes
Column MapMaps each input column to the corresponding table column for updating values. Format: InputColumn → TableColumn. Can rename or transform field names.Yes

Sample Input

IDNameSalaryDepartment
101John Doe55000HR
102Jane Smith66000HR

Sample Configuration

FieldValue
Connectionemployee-db-connection
TableEmployees
Key ColumnsID
Column MapName → FullName,
Salary → Salary,
Department → DeptName

Sample Output

IDFullNameSalaryDeptName
101John Doe55000HR
102Jane Smith66000HR

The matching rows in the database table were updated using the new data provided.