you can try the join() function and turn the arrays in comma separated lists. Or an Iterator module followed by a Text Aggregator module, this will do the same as well.
I think the issue is there are multiple “slots” arrays each inside their own unique collection, inside the main “data” collection.
I am not able to map or join or iterate because the names and amounts of these collection will change every day, also there are multiple “slots” arrays I need to compile into one.
This solution you posted works for one array but there are currently 3 arrays and the collection “2025-03-12” will not exist tomorrow
Thanks for the reply Harvey.
This does not seem to return anything, all the slots arrays are called slots they don’t have an identifier.
The join function is much better, this screenshot is doing exactly what I want, but again the issue is the mappings will change every day because of the collection names.
If I could use your get solution inside each join it would work but its not returning anything for 1.sots
Awesome man, pretty much just recreates with a static path I can use to join!
Now I just need to account for missing collections as sometimes there are 2 or 3 instead of 4 but i think I should be able to figure that out.
After more testing this actually works with one get
{{get(toArray(56.data); 1)}}
It creates a static variable I can map in the next module, and if the slot is empty it just returns empty so it will work no matter what the collections are called and no matter how many collections there are.
Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.
You can upload the file here by clicking on this button:
B. Insert as Formatted Code Block
If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:
Method 1: Type code block manually
Add three backticks ``` before and after the content/bundle, like this:
``` content goes here
```
Method 2. Highlight and click the format button in the editor
Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved.
This will allow others to better assist you. Thanks!