EJS12
March 1, 2025, 10:35am
1
Hello everyone,
I have a question about merging two mapped values in an array. I have an array called “People”, where each collection contains a “Name” and an “Age”.
Currently, I use the following functions to extract the values separately (see the images below for the results):
{{map(13.People; “Name”)}}
{{map(13.People; “Age”)}}
However, instead of getting them separately, I want to merge them into a single string with a comma in between (e.g., “John, 30”) (see image below with the red colored additions of the “Age”).
Does anyone know how I can achieve this? Any help would be greatly appreciated!
Thanks in advance!
You can Iterate one list (or repeat the length of one array), and then use a Text Aggregator, and then a split function in a Set Variable module.
You’ll need a minimum of three modules:
This is just an example. Your final solution may or may not look like this depending on your requirements.
Input:
Output:
blueprint.json (3.8 KB)
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
1 Like
EJS12
March 1, 2025, 8:08pm
3
Thanks a lot, this is exactly what I needed!
1 Like