Workflow Blocks
Read Data Set
Query a data set's records and expose the result as variables.
Read Data Set queries a workspace data set with filters, then exposes the result's columns and a match count as variables.
When to use it
Use it to bring device or sensor data into a decision — check the latest reading before approving a job, or compute the average temperature over the last day for a report.
Settings
| Setting | What it does |
|---|---|
| Data Set | The active workspace data set to read. |
| Filters (WHERE) | Optional. Compare a column with a value (=, ≠, >, ≥, <, ≤, contains). All filters must match. With no filters, the latest row is read. |
| Group by | None (all rows), Per device or Per interval. |
| Aggregation | How rows are reduced: Latest, Earliest, Min, Max, Sum, Average, Median or Count. |
| Interval (seconds) | With Per interval: the size of each interval. |
Variables
With marker D1:
| Variable | Type | Notes |
|---|---|---|
D1.<column> | per column | One per data set column. |
D1.matched_rows | Number | How many rows matched the filters. |
D1.groups | Number | How many groups there are. |
D1.has_match | Boolean | Whether any row matched. |
D1.deviceId | Text | The device the row came from. |
D1.timestamp | Date | When the reading was taken. |
Paths
One output, whether or not anything matched. Use a Condition Router on Has match to handle "no data".