# Arrays: joining different elements from arrays together

**URL:** <https://community.make.com/t/arrays-joining-different-elements-from-arrays-together/29994>\
**Category:** Questions\
**Tags:** arrays\
**Created:** [March 9, 2024, 5:35am UTC](https://community.make.com/t/arrays-joining-different-elements-from-arrays-together/29994 "2024-03-09T05:35:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sherif\_Abdulla](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Sherif\_Abdulla](https://community.make.com/u/Sherif_Abdulla)\
**Post date:** [March 9, 2024, 5:35am UTC](https://community.make.com/t/arrays-joining-different-elements-from-arrays-together/29994/1 "2024-03-09T05:35:32Z")

</div>

Hi all

Trying to figure something out with arrays, hoping someone can help

I have a data with the following structure:

line\_items (array)  
1 (collection)  
Quantity: 1  
Title: A  
2 (collection)  
Quantity: 2  
Title B  
3 (collection)  
Quantity: 3  
Title C

I’m trying to convert this into one string that looks like this:  
1x A; 2x B; 3x C

Any help would be appreciated. Thank you so much!

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [March 9, 2024, 5:44am UTC](https://community.make.com/t/arrays-joining-different-elements-from-arrays-together/29994/2 "2024-03-09T05:44:56Z")

</div>

Use an iterator module with a Text aggregator.

Every result (item/record) from an iterator/search/match module will output a bundle. To “combine” them into a single structure, you’ll need to use an aggregator of some sort.

[Aggregators](https://www.make.com/en/help/modules/aggregator.html) are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the [Array aggregator](https://www.make.com/en/help/tools/flow-control.html#array-aggregator) module. The next popular aggregator is the [Text Aggregator](https://www.make.com/en/help/tools/tools.html#text-aggregator) which is very flexible and has applies to many use-cases.

There are other types of aggregator modules, click the below links to find out more:

- [Array aggregator](https://www.make.com/en/help/tools/flow-control.html#array-aggregator)
- [Text aggregator](https://www.make.com/en/help/tools/tools.html#text-aggregator)
- [Numeric aggregator](https://www.make.com/en/help/tools/tools.html#numeric-aggregator)
- [Table aggregator](https://www.make.com/en/help/tools/tools.html#table-aggregator)
- [JSON aggregator](https://www.make.com/en/help/tools/json.html#aggregate-to-json)
- [CSV aggregator](https://www.make.com/en/help/apps/file-and-document-management/csv.html#create-csv)
- [Archive (ZIP) aggregator](https://www.make.com/en/help/apps/built-in-apps/archive.html#create-an-archive-973677)
- _other app-specific aggregators_

---

<div class="post-metadata">

**Author:** ![Sherif\_Abdulla](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Sherif\_Abdulla](https://community.make.com/u/Sherif_Abdulla)\
**Post date:** [March 9, 2024, 8:04am UTC](https://community.make.com/t/arrays-joining-different-elements-from-arrays-together/29994/3 "2024-03-09T08:04:25Z")

</div>

Thanks, Sam! this works!

My scenario just looks a little inefficient at the moment and looks like this:

 ![Screenshot 2024-03-09 at 12.00.31 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/1/51f5204c441f20d873b8d4ba68f053411edd3fdb.png)

Particularly the first two iterations as they’re iterating over the same item:

 ![Screenshot 2024-03-09 at 12.01.43 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/7/e79c706bf6ed6c22e3057ec318cbe8f182de328a.png)

Put extracting diferrent variables:

 ![Screenshot 2024-03-09 at 12.01.48 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/7/77d51cf3af2f7acb3fe1d0e98b918556c5d401e4.png)  
 ![Screenshot 2024-03-09 at 12.01.51 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/f/0/f0b86154746e7cded73622fc3ff9d4bcaa07e8dc.png)

Is there a way to combine these two somehow?

Thank you!

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [March 9, 2024, 1:56pm UTC](https://community.make.com/t/arrays-joining-different-elements-from-arrays-together/29994/4 "2024-03-09T13:56:29Z")

</div>

Nope, there is no way to combine them, because one is a text aggregator, and one is a numeric aggregator.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [March 23, 2024, 8:02am UTC](https://community.make.com/t/arrays-joining-different-elements-from-arrays-together/29994/5 "2024-03-23T08:02:58Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


