Skip to main content

Custom

MSSQL Plugin – Custom Action

Summary (SEO Meta Description):
The Custom Action in the MSSQL Plugin allows you to run custom SQL queries directly within a workflow.
It supports both inputs and outputs mapping, making it flexible for complex database operations.


Overview

The Custom Action enables workflows to execute raw SQL queries against a Microsoft SQL Server database.
It is ideal for scenarios where predefined actions (Insert, Select, Update, Delete, Upsert) are not sufficient.

Typical Use Cases:

  • Execute complex SELECT queries with joins and conditions
  • Run stored procedures inside MSSQL
  • Perform batch updates or calculations
  • Generate custom reports by querying specific fields

⚙️ Configuration

FieldDescriptionType / Options
LabelCustom name for the actionString
Select connectionChoose or create an MSSQL connectionConnection
SQLSQL query to executeString
Inputs (Manual)Define custom query parameters (optional)NUMBER, STRING, BYTE, DATE, DATETIME, BOOLEAN, OBJECT, ARRAY, ANY
Truncate FieldsShorten field values if requiredBoolean
Schema (Inputs)Schema validation for input parametersSchema selector
Outputs (Manual)Define custom outputs from query resultsNUMBER, STRING, BYTE, DATE, DATETIME, BOOLEAN, OBJECT, ARRAY, ANY
Truncate FieldsShorten output field values if requiredBoolean
Schema (Outputs)Schema validation for query resultsSchema selector

FAQ

Q: Can I run multiple SQL statements in one action?
A: It is recommended to run one statement per action. Running multiple may depend on your MSSQL configuration.

Q: Does this action support dynamic inputs?
A: Yes. You can pass workflow data as parameters into your SQL queries using manual inputs.

Q: Can I retrieve results from a SELECT query?
A: Yes. Use the Outputs section to define how the query results should be mapped back into the workflow.


Keywords: WeHub MSSQL Plugin, MSSQL Custom SQL, MSSQL Workflow Query, Microsoft SQL Server Integration