aggregate_order
Count selected orders, optionally sum their totals, and group by status, assignee, or other properties to get numeric metrics per group.
Instructions
Count the selected Order objects and optionally sum a numeric property. Omit group_by for one whole-set total (key: null, zero metrics for an empty set), or group by a property. Returns set and values; each row has a key, member pks and numeric metrics. Filter rows in client-side code and use their pks to continue exploring.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pks | Yes | ||
| sum | No | ||
| group_by | No |