Skip to main content

Retrieve rows from Datastore

Retrieve rows from a table in Datastore.

Application

  • Datastore

Inputs (what you have)

NameDescriptionData TypeRequired?Example
Table nameName of the table to retrieve data fromText (Short)YesDataTable1
Row IDID of the value you would like to fetchText (Long)NoMyCustomRowID
FieldsA comma-separated list of the fields you would like to return to in your search. * will return all fieldsText (Long)No*
FiltersFilters to apply to the retrieval. See the documentation for configuration detailsText (Long)Nofirst_name = 'John'
LimitLimit on the number of results to returnNumberNo1

Outputs (what you get)

NameDescriptionData TypeRequired?Example
Total number of rowsThe total number of rows in the output JSONNumberNo
Output JSONJSON output of the query resultText (Long)No

Outcomes

NameDescription
SuccessThis status is selected if the job has successfully completed.
No ResultThis status is selected if the job has returned no results

Filter Configuration

You can apply SQL-like filters to narrow down your query results.

These filters use a familiar comparison syntax and support basic operators, list matching, and pattern matching.


Supported Filter Conditions (SQL-like)

Comparison Operators

OperatorDescriptionExample
=Equal tofirst_name = 'John'
!=Not equal tostatus != 'cancelled'
>Greater thanage > 18
<Less thanage < 65
>=Greater than or equal toscore >= 80
<=Less than or equal tocreated_at <= '2024-12-31'

List Matching

Use IN or NOT IN to match against multiple values.

OperatorDescriptionExample
IN (...)Matches any of the listed valuesstatus IN ('active', 'pending', 'review')
NOT IN (...)Excludes all listed valuesrole NOT IN ('admin', 'superuser')

Pattern Matching

Use LIKE for text searches with wildcard support.

PatternMeaningExample
%Matches any sequence of charactersname LIKE '%John%'
_Matches a single charactercode LIKE 'A_1'

Patterns are case-insensitive by default.


Logical Operators

Combine multiple conditions using AND and OR.

OperatorDescriptionExample
ANDAll conditions must be truestatus = 'active' AND age >= 18
ORAt least one condition must be truestatus = 'pending' OR status = 'review'

Supported Value Types

TypeExamplesNotes
Text'John', 'example'Must be enclosed in single quotes
Number42, 3.14Integers and decimals supported
Booleantrue, falseCase-insensitive
Date/Time'2024-05-01', '2024-05-01T12:00:00Z'Must be valid ISO 8601 formatted string

🚫 Not Supported

FeatureExampleReason
Between rangesprice BETWEEN 10 AND 20Use separate > and < comparisons instead
Subqueriesid IN (SELECT ...)Nested queries not supported
Function callsLOWER(name)Functions not supported

Example Configurations

Example 1 — Retrieve all rows

Table nameFieldsFiltersLimit
Users*(none)10

Result: Returns up to 10 rows from the Users table.


Example 2 — Filter by exact value

Table nameFieldsFiltersLimit
Customersfirst_name, emailstatus = 'active'5

Result: Returns up to 5 active customers with their name and email.


Example 3 — Match from a list

Table nameFieldsFiltersLimit
Ordersorder_id, total_amountstatus IN ('paid', 'shipped')20

Result: Returns up to 20 orders where the status is either “paid” or “shipped”.


Example 4 — Pattern matching

Table nameFieldsFiltersLimit
Contactsemailemail LIKE '%@gmail.com'10

Result: Returns up to 10 contacts with Gmail addresses.


Example 5 — Combined conditions

Table nameFieldsFiltersLimit
Employeesname, departmentdepartment = 'Sales' AND name LIKE 'A%'10

Result: Returns employees in Sales whose names start with “A”.


Example 6 — Retrieve by Row ID

Table nameRow ID
InventoryItem-001

Result: Returns the row that matches the specified ID.