Load Table
The Load Table step allows you to load a list of rows from a table by a given condition, order, and limit.
The actions returns an array of objects:
Filtering
You can specify a filter condition to locate the row to load, for example:
You can also specify multiple conditions - the rows will be loaded if all conditions are met.
The condition(s) you specify will be sent to the server and converted to a SELECT
statement, for example:
In the action's Payload tab, you can check the actual condition sent to the server.
If no conditions are specified, the first table row will be loaded.
You can also use various condition operators to filter the table:
like
operator allows you to load rows with a partial matchin
operator allows you to load rows with a specific value/list of values
Data transformation
If the database returns its data in a different format than expected for the components, you can modify it. For example, you can turn on the Transform result toggle in the action's settings or add a JavaScript Code step to transform the data.
Here are some examples of possible data transformations:
Access an inner array object and map it to a new array:
Add a new key to the array of objects:
Filter an array of objects (short version):
Multiline version:
Last updated
Was this helpful?