Allocate
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

SettingWhat it does
Data SetThe 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 byNone (all rows), Per device or Per interval.
AggregationHow 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:

VariableTypeNotes
D1.<column>per columnOne per data set column.
D1.matched_rowsNumberHow many rows matched the filters.
D1.groupsNumberHow many groups there are.
D1.has_matchBooleanWhether any row matched.
D1.deviceIdTextThe device the row came from.
D1.timestampDateWhen the reading was taken.

Paths

One output, whether or not anything matched. Use a Condition Router on Has match to handle "no data".