Aggregate different array collection data from a bundled output into single text string

:bullseye: What is your goal?

I would like to take specific data output from an array aggregation that is split between two collections and consolidate into a single text string. For example, the array aggregator bundle 1 array output includes two collections 1 and 2. Collection 1 contains ‘id: 2708325’ and Collection 2 contains ‘id: 2708326’. I would like to combine both id’s into a single string 2708325,2708326 that I can then input into an HTTP PUT module that requires id’s separated by commas in order to post multiple files. JSON PUT string below is what I need input in the Tech Sign Off attachmentIDs
{
“buildingID”: 589546,
“customFields”: [
{
“customFieldID”: 710519,
“name”: “Tech Sign Off”,
“attachmentIDs”: [2708325,2708326]
},
{
“customFieldID”: 709192,
“name”: “NTE”,
“value”: 200
}
]
}

:thinking: What is the problem & what have you tried?

Ive tried numerous ways to aggregate, iterate and set or get variables that allow me to input the separate file id’s into a single string. No matter what Ive tried, it only seems to capture the first output collection data and will not see the second id.

:clipboard: Error messages or input/output bundles

Below is the array output bundle from my Array Aggregator. You can see both id’s I need to pull out but cant figure out how

    {
        "array": [
            {
                "id": 2708325,
                "filename": "Tracking # 1113961 Sign Off-0001.jpg"
            },
            {
                "id": 2708326,
                "filename": "Tracking # 1113961 Sign Off-0002.jpg"
            }
        ],
        "__IMTAGGLENGTH__": 2
    }
]```




### 📸 Screenshots (scenario flow, module settings, errors)
![Screenshot 2026-03-17 at 9.30.39 PM.png|670x733](upload://5n64O2afqW5V1nIpHciw4PrA3Ra.png)

Hey there,

You can use a text aggregator module after an iterator module to do that. Or the join function.

Hi Stoyan_Vatov, thank you for this suggestion. I am new to Make and have a lot to learn. I assumed there was a way to do this but didnt know about the text aggregator. I may still be missing something, as I was not able to make it worked as you described. However it did point me in the right direction and I got it working eventually, while it may be a bit long in the tooth, but it works.
I used a Text Aggregator after the Iterator module and was able to capture the filtered file IDs.

However, I tried to used some functions to strip it down to just 2708325,2708326 in the text aggregator module with no luck. Im assuming there might be a way to do this, but my amauter skills couldnt figure it out. So I added a set variable module after this with some long winded functions below to finally get the format I needed and then referenced it in my HTTP module.

{{replace(replace(replace(replace(51.text; “{”; “”); “}”; “”); “”“id”“:”; “”); ", "; “,”)}}

The end result below was perfect and the files posted no problem with the HTTP PUT module

Thanks again for the assist. I’d been struggling for 2 days trying everything I could think of. You dont know what you dont know I guess. 5 stars to you, if they give them in this forum. :+1: