Store multiple values from an array into a string

Hello,

I’m fetching data from an application thru API. In total I’m fetching 3 records (I set the limit in the get function). I can see that I receive the data in 3 bundles, so that’s working fine.

Now, I want to construct a message that contains 1 data point (item called “Title”) from all 3 bundles. So I’m trying to extract or loop thru the array and join the 3 titles from the 3 data bundles into 1 string (with a , as seperator).

Within the Data Store module I tried “join”, but it only returns 1 title. And I tried “join(map(” but that returns an error (“{title name} is not a valid array”).

What do I need to do to parse the titles of all 3 bundles into 1 string? Any help or ideas is appreciated.

Thank you.

You have bundles and not an array. You would have to aggregate the bundles first to use the array function. But since you already have bundles, you could use a text aggregator to simply get the string you want.


2 Likes

@Levin thanks for clearing that up!

For some reason I assumed I’m working with arrays – but obiously that’s not the case. Your solution works perfectly.