Table Task¶
Overview¶
The Table Task fetches and searches data from custom tables in your CRM. Use it to query configuration data, lookup values, retrieve customer preferences, search product catalogs, or access any structured data you've stored in custom tables.
When to use this task:
- Lookup customer preferences or settings
- Query product catalogs or pricing
- Retrieve configuration values
- Search inventory or stock data
- Access project history
- Fetch support ticket information
- Get custom field mappings
- Retrieve territory assignments
Key Features:
- Fetch single row or all rows
- Search by row ID
- Filter by client ID and column values
- Support for multiple filter conditions
- Returns latest matching row if multiple found
- Handles blank/empty values
- Works with user multi-select fields
- Structured output by row and column
Quick Start¶
Fetch Single Row:
Fetch by Client + Filters:
1. Add Table task
2. Select Action: Fetch Row
3. Enter Table ID
4. Set Client ID
5. Add column filters (row_col_X)
6. Save
Fetch All Rows:
1. Add Table task
2. Select Action: Fetch All Rows
3. Enter Table ID
4. Set Client ID (optional)
5. Add filters (optional)
6. Save
Configuration¶
Action Selection¶
Fetch Single Row:
Returns single matching row.
Fetch All Rows:
Returns all matching rows as array.
Table ID (Required)¶
The ID of the custom table to query. Find in CRM under Custom Tables.
Row ID (fetch_row only)¶
Direct row lookup by ID. Fastest method if you know the row ID.
When to use:
- Previous task returned row ID
- Direct record access needed
- No filtering required
Client ID¶
Optional for fetch_row with row_id, required for client_id_columns search method.
When to use:
- Fetch customer-specific data
- Filter by client ownership
- Get client preferences/settings
Column Filters (row_col_X)¶
Filter by column values. Column numbers match your table structure.
In the task settings, use + Add filter to add only the columns you want to filter on; with no filters, Fetch Row returns the client's newest row and Fetch All Rows returns all of them. Edit Row works the same way with + Add column: only the listed columns are changed, and a listed column left blank is emptied.
Syntax:
row_col_Xwhere X is column number- Column 1 is first custom column (after default fields)
- Supports exact matching
- Can match an empty cell, or any value, with the column's condition (see below)
Example table structure:
Table 15 - Customer Preferences
Column 1 (row_col_1): Status
Column 2 (row_col_2): Plan Type
Column 3 (row_col_3): Region
Column 4 (row_col_4): Language
Column 5 (row_col_5): Preferences (JSON)
Filter for active enterprise customers in EMEA:
Table ID: 15
Client ID: {{task_15001_client_id}}
row_col_1: Active
row_col_2: Enterprise
row_col_3: EMEA
Blank Filters¶
An empty filter is ignored — it does not filter on that column. This is also what happens when a filter is a variable that turned out empty.
To find rows where a column is blank, change that column's condition from Matches this value to Is empty. Has any value does the opposite. Both ignore whatever is typed in the value box.
| Condition | Rows kept |
|---|---|
| Matches this value | The cell equals the value (blank value = no filter) |
| Is empty | The cell is blank, never filled in, or a multi-select with nothing picked |
| Has any value | The cell holds something |
Checkbox columns don't have a condition — filter them with Yes or No.
Date Fields¶
Filter syntax:
Either format matches. Fetch Row outputs dates as DD/MM/YYYY, so a fetched date can be passed
straight into a later filter. A value that isn't a valid date matches no rows.
User Multi-Select Fields¶
Custom tables support multi-select user fields.
Filter syntax:
Matches if user is in the multi-select list.
Outputs¶
| Field | Type | Example | Notes |
|---|---|---|---|
table |
array | [{"id":1,…}] |
The rows returned. Iterate with a Loop using action set to array. |
table_row_id |
number | 4471 |
The row acted on, for single-row actions. |
row_ids |
string | 4471,4472 |
Comma-separated IDs of the rows returned. |
run |
boolean | true |
|
run_text |
string | Table data retrieved. |
Output Structure¶
Single Row Output¶
{
"task_25001_data": {
"12345": {
"row_id": "12345",
"client_id": "67890",
"col_1": "Active",
"col_2": "Enterprise",
"col_3": "EMEA",
"col_4": "English",
"col_5": "{\"email_freq\": \"daily\", \"sms_opt_in\": true}",
"created": "2025-01-15 10:30:00",
"updated": "2026-02-01 14:22:00"
}
}
}
Access fields:
- Row ID:
{{task_25001_data.12345.row_id}} - Column 1:
{{task_25001_data.12345.col_1}} - Column 2:
{{task_25001_data.12345.col_2}} - Created:
{{task_25001_data.12345.created}}
Multiple Rows Output¶
{
"task_25001_data": {
"12345": {
"row_id": "12345",
"client_id": "67890",
"col_1": "Active",
"col_2": "Enterprise"
},
"12346": {
"row_id": "12346",
"client_id": "67890",
"col_1": "Active",
"col_2": "Professional"
}
}
}
Access specific row:
{{task_25001_data.12345.col_1}}{{task_25001_data.12346.col_2}}
Loop through all rows:
Real-World Examples¶
Look up a stored setting for a client¶
CRM Trigger
└─ Table fetch_row by client and column
└─ Email use the value from {{task_25001_table}}
Record a row against a client¶
{{task_25001_table_row_id}} is the row that was written, which you need if a later task edits it.
Work through a table's rows¶
Tables hold rows, not answers
The task reads and writes individual rows. It does not total, count or group them — for that, see MySQL Query.
Best Practices¶
Table Design¶
- Use consistent column types - Don't mix data formats in same column
- Index frequently searched columns - Improves performance
- Keep column count reasonable - Max 20 columns per table
- Use descriptive column names - Document in CRM
- Maintain data quality - Regular cleanup and validation
Search Strategy¶
- Use row_id when available - Fastest lookup method
- Combine client_id with columns - Efficient filtering
- Limit filter columns - Only necessary conditions
- Handle missing data - Check for blank values
- Consider fetch_all vs fetch_row - Based on expected results
Performance¶
- Don't fetch unnecessary data - Use filters
- Cache frequently accessed data - Store in variables
- Batch operations - Use loops efficiently
- Monitor table size - Archive old data
- Index key columns - Improves query speed
Data Handling¶
- Validate table output exists - Use If task to check
- Handle multiple row IDs - When using
*wildcard - Parse JSON columns - Use Code task for complex data
- Format dates and numbers - Use formatter tasks
- Provide fallbacks - Use Coalesce for missing data
Troubleshooting¶
No Data Returned¶
Issue: Table task returns empty
Causes:
- Invalid table ID
- No matching rows
- Incorrect filter values
- Wrong column numbers
- Client ID mismatch
Solution:
- Verify table ID in CRM
- Check filter values match exactly (case-sensitive)
- Confirm column numbers (col_1 is first custom column)
- Test with fewer filters
- Use fetch_all_rows to see all data
Wrong Row Returned¶
Issue: Returns unexpected row
Cause: Multiple rows match filters, returns latest
Solution:
- Add more specific filters
- Use unique identifier (row_id) if known
- Check table for duplicate data
- Review column values in CRM
Cannot Access Column Data¶
Issue: {{task_25001_data.*.col_X}} returns empty
Causes:
- Wrong row ID in path
- Column doesn't exist
- Using
*with multiple rows
Solution:
# Single row - use *:
{{task_25001_data.*.col_1}}
# Specific row ID:
{{task_25001_data.12345.col_1}}
# Multiple rows - use Loop task:
Loop over {{task_25001_data}}
Access: {{task_29001_item.value.col_1}}
Blank Value Not Matching¶
Issue: Leaving a filter blank returns rows that have a value in that column
Cause: A blank filter means "don't filter on this column"
Solution: Set the column's condition to Is empty. Cells holding only spaces count as empty.
Performance Slow¶
Issue: Table lookup takes long time
Causes:
- Large table (1000+ rows)
- Complex filters on multiple columns
- Unindexed columns
Solution:
- Use row_id lookup when possible
- Reduce filter complexity
- Archive old data
- Contact admin about indexing
Frequently Asked Questions¶
Can I update table data?¶
No, this task only reads data. Update manually in CRM or use API.
Can I search multiple tables?¶
No, one table per task. Use multiple Table tasks for multiple tables.
What's the maximum table size?¶
Recommended under 10,000 rows. Performance degrades with very large tables.
Can I join tables?¶
No, tables are independent. Fetch from each separately and join in Code task.
How do I handle multiple matching rows?¶
Use fetch_all_rows action and loop through results, or add more filters to get single row.
Can I filter by date range?¶
No direct date range filter. Fetch all rows and filter in Code task.
Do I need exact column value match?¶
Yes, filters are exact match only. Use Code task for partial matching or regex.
Can I sort results?¶
No built-in sorting. Use Code task to sort after fetching.
Related Tasks¶
- Match to Client - Get client ID for table queries
- MySQL Query - Query database directly for complex needs
- Code Task - Process and transform table data
- Loop - Iterate through multiple rows
- If Task - Conditional logic based on table data
- Coalesce - Provide fallback values
- Variable - Store frequently used table values