I have a quick update on how far I got with some playing around:
I have now created a JSON Structure that reflects the data in a way I can work with.
So now each file name and file data are combined into a single collection like this:
[
{
"File1": {
"Data": "/9j/4QAYRXASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMdaHR0cDov3QxB5Y8HA9RDg5PovoY8EGKKKD6KiRIkqV6Fx5SVweKhDlEeLly/QQ4WC4SzXGaOooMGVKhBgwY8MXg4HD6CHB9C5cuX6UjGEGLiXA9CRhioxjHmuH0SB",
"Name": "file.jpeg"
},
"File2": {
"Data": null,
"Name": null
},
"File3": {
"Data": null,
"Name": null
}
}
]
This JSON is then parsed and fed into an interator. At the moment i just manually create items in the iterator and add the collection from the parsed JSON as the value.
Next I feed this value to the aggregator. This is where the next issue is. I feed a collection into the iterator, so it should iterate over every item and each iteam consist of a collection with Name and Data fields. However, the aggregator only receives a “value” field from the iterator.
I thought that the “value” field is just a collection where I can select specific fields. I tried about every combination to get the specific fields of the collection, “get”, “map”, and even the dot notation way. But I just can’t seem to get the Name and Data separated.
This is the output bundle of the iterator (I currently only iterate over one item)
[
{
"Data": "/9j/4QAYRXhpZgAASUkqPVfAkg9FUCC4K9Lw+u5fF+lJXpfoXDhlfqHh9deiuB+jfqAv6M+l4uXCX6k9Ty8nofpH1TlfoPJxXB9OpUD6u+ivRcGXL4qJEjxcSPpP1l8P0qlwYx+oOQ9L6XliyuK9IwfSkYS4yvQP65+ocPB9Ih+gMIR4fQep9b639Gel+ocPB9L//Z",
"Name": "file.jpeg",
"__IMTINDEX__": 1,
"__IMTLENGTH__": 1
}
]
So i see an array containing all the iteration items and each item contains multiple fields.
This is what everything looks like now:
Is that a viable option or am I completely missing the target?
All the best,
David