Group By Flow Step
Use the Group By flow step to aggregate data based on specified criteria.
This step allows you to group records by one or more fields and then perform aggregate functions such as sum, count, average, min, or max on other fields within these groups.
Step Inputs
In the Edit Step menu, you can add details about the step configuration as needed for your flow.
Step Detail
-
List: Enter the list of records that you want to group. This is typically an expression that identifies the data output of a previous step. You might use the template of
flow.step(‘step-id-goes-here’).outputto name the step with the data output that you want to filter. For example,flow.step('invoice-lines').output;.
Group by Properties
Use the List field to specify This becomes the input dataset for the Group By operation.
In the Group by Properties section, use the Property Name field to indicate the property you want to group your records by. If needed, you can select Custom Property to define a custom value for the property. Select Add Item to add additional properties.
Step Outputs
The Group By step outputs a new list of records where the original records have been grouped according to the specified criteria. Each record in this new list represents a unique group.