maestro-automate
latest
false
Maestro Automate user guide
- Get started
- Build
- Deploy and run
- Examples
- Reference
Group by
Group the entries of a list by a shared field, and compute totals, averages, or counts for each group.
Groups a collection by a shared field and aggregates values like totals, averages, or counts.
Configuration
| Field | Required | Description |
|---|---|---|
| Input | Yes | The collection (array) to group. |
| Group by field | Yes | The field whose value determines the group. |
| Aggregations | No | Additional computed fields per group (count, sum, average, min, max, first, last, collect). |
Example
Group a list of orders by region and count the number of orders per region:
- Input:
$vars.fetchOrders1.output.body - Group by:
region - Aggregation:
orderCount= count
Output available as $vars.groupBy1.output.