Prepare fields for aggregation
In the app that runs the plugin (the aggregation destination), place the following fields to store the results. The numbers correspond to those in the image.
Fields in the Destination App
- ① Identifier Field
- The field that defines the unit of aggregation. Records are looked up by the value of this field, and a new record is added if none matches.
- ② Aggregation Field
- The field that stores the aggregated result.
If the identifier fields include a field whose value is filled in automatically, such as the record number or creator, no records are added and only existing records are updated.
The app that holds the source data (the aggregation source) needs the following fields. The numbers correspond to those in the image.
Fields in the Source App
- ① Identifier Field
- A field with the same values as the identifier field in the destination app.
- ② Aggregation Target Field
- The field that stores the values to aggregate, such as sales amounts or quantities. These values are added to or subtracted from the aggregation field in the destination app.
You can also combine multiple identifier fields. For example, combining a product lookup field with a year-month number field lets you aggregate into one record per product per month.