Hi everyone,
I have been banging my head against the wall for a few hours now and tried finding a helpful thread in this forum but still can’t figure it out somehow so maybe one of you can help?
The scenarios is as follows:
I am deceiving a webhook that includes an array of collection:
I am trying to access the objects in my flow individually. But whatever I do it seems like this array is being treated like a string and I don’t know what to do.
I tried:
- creating a separate variable for the promotions array to access its children
- split(promotions;,) but that seemed to only split the string of [Collection], [Collection] into 2 bundles of [Collection] strings. I still can’t access the actual collection object
- parse JSON - that just created a JSON {[Collection],[Collection]}
- get(promotion;1) - only selected [Collection], [Collection] again
- also tried map() but can’t remember what the error here was but it didn’t work. Every tutorial and example out there seems to have access to each bundle of the array directly but for me it is just [Collection], [Collection] for whatever reason instead of individual bundles.
I seem to be misunderstanding how arrays of collections work in make. the original JSON (screenshot above) seems to be valid. I just cant figure out what i am doing wrong.
Any hints would be appreciated!