Use Custom Parameters
Custom parameters in your queries offer a flexible way to introduce variables without directly modifying query parameters. This guide will walk you through creating, utilizing, and calling queries with custom parameters.
Adding Custom Parameters​
- Open the query panel and select the query you want to add custom parameters to.
- Navigate to the Parameters section in the top bar.
- Click the + button to add a custom parameter.
- For each parameter, specify:
- Name: Identifier for the parameter.
- Default value: A constant string, number, or object.

Syntax for Utilizing Parameters​
Use parameters.<identifier>
in your query to employ custom parameters. Note that parameters can only be used within the query where they are defined.

Example: Create Row in ToolJetDB with Custom Parameters​
Let's assume we have a ToolJetDB table with the following columns: name
, email
, and contact
. We will create a new row in the table using custom parameters.
-
Create a new ToolJetDB query, select a table from the dropdown and select the
Create Row
operation. -
Add the following parameters:
- name:
name
and value:Shubh
- name:
email
and value:[email protected]
- name:
contact
and value:4638563845
- name:
-
Add the columns to the query and use the custom parameters to set the values.
Column Value name {{parameters.name}}
email {{parameters.email}}
contact {{parameters.contact}}
-
Finally, execute the query to create a new row in the ToolJetDB table with the values provided in the custom parameters.