Airtable to PandaDoc Products

I need help with the concept of transforming an array. Here is the basic scenario:


the Array Aggregator already uses the target PandaDoc structure, but I need to transform it somehow beforehand to merge collections with the same Track ID. Grouping by Track ID results in different bundles, but everything needs to be in a single array. Additionally, it would be preferable to group all artists without duplicates, so they can be used in other fields of the document.

Here is the structure of array output:

Below, I’ve provided a flowchart for better understanding.