Skip to main content

Insert

MySQL Plugin – Insert Action

Summary (SEO Meta Description):
The MySQL Insert Action in WeHub allows workflows to insert new rows into a MySQL table.
It supports dynamic mapping, schema validation, and custom inputs for seamless data insertion.


Overview

The Insert Action of the MySQL Plugin is used to add new records into a selected MySQL table.
You can define columns, map workflow data, and ensure schema validation for reliable inserts.

Typical Use Cases:

  • Insert new user records into a MySQL database
  • Store workflow results (e.g., processed files, logs, or events)
  • Automatically add structured data into transactional tables

⚙️ Configuration

FieldDescriptionType / Options
LabelCustom name for the actionString
Select ConnectionChoose an existing MySQL connection or create a new oneDropdown
Table NameTarget table for insertionsDropdown
ColumnsAdd column names and map workflow inputsString (repeatable list)
MapAssign workflow data to corresponding columnsKey/Value Mapping
InputsEnable Manual mode to add input fields dynamicallyToggle + (Name / Type)
SchemaOptional schema mapping for validationManual / Truncate Fields

FAQ

Q: Can I insert multiple rows in one action?
A: The action inserts a single row per execution, but workflows can loop over data for bulk inserts.

Q: What happens if a column is missing?
A: Only specified columns will be filled; others will use their default values in MySQL.

Q: Does schema validation apply before inserting?
A: Yes. Schema mapping ensures that data is validated before insertion into the database.


Keywords: WeHub MySQL Plugin, Insert Action, MySQL Workflow Automation, Database Insert