Skip to main content

Insert

PostgresSQL Plugin – Insert

Summary (SEO Meta Description):
The PostgresSQL Plugin Insert action allows workflows to insert new records into PostgreSQL tables.
Supports mapping workflow data to table columns with schema validation.


Overview

The Insert action of the PostgresSQL Plugin enables workflows to add new rows into a specified table.
It maps workflow inputs to database columns, ensuring structured data is inserted correctly.

This action is useful for persisting workflow outputs, storing transactions, or logging structured data directly into PostgreSQL.


⚙️ Configuration

FieldTypeDescription
LabelStringCustom name for the action node.
Select ConnectionConnectionChoose or create a PostgreSQL connection.
Table NameDropdownSelect the target table where data will be inserted.
ColumnsKey-ValueDefine target column names and map workflow values.
Inputs (Manual)Key-ValueAdd manual input values with types. Supported: NUMBER, STRING, BYTE, DATE, DATETIME, BOOLEAN, OBJECT, ARRAY, ANY.
SchemaSchemaOptional schema for validating the inserted record.

💡 Typical Use Cases

  • Insert patient data into a healthcare database.
  • Store workflow logs or job results for auditing.
  • Add new customer records in CRM-related workflows.
  • Save IoT events or telemetry data into structured tables.

FAQ

Q: Can I insert into multiple tables at once?
A: No. Each Insert action targets a single table. Use multiple nodes for multi-table inserts.

Q: What happens if a required column is missing?
A: PostgreSQL will throw an error. Ensure all required fields are mapped.

Q: Does schema validation run before insert?
A: Yes. If a schema is provided, data is validated before being sent to PostgreSQL.


Keywords: WeHub PostgreSQL Plugin, Insert Action, Database Integration, Insert Row PostgreSQL, Workflow Database Insert