Working with arrays

Hello,

I am stuck with one scenario. It is basically created to identify orders from our eshop, in certain statuses created by same customer (duplicates are found and added to array in make.com by email). I created scenario, everything is working fine, I got it to the point where customer with same email has 2 orders, these orders are bundled to 1 array (screenshot 1).

However, I can´t filter arrays with 2 and more orders. Here is my filter setup (Screenshot 2). I need this filter, because the scenario continues (creating ticket in freshdesk), but i need this only for arrays that have 2 orders in it.

As you can see (Screenshot 3), the bundle 1 has more than 1 records in it, however, it does not work - it does not go trough filter. What am I missing here?

Why is the fil

1 Like

You can use the length() function to determine the size of your array in the array aggregator and use that to create a filter.

L

How can I use the length()?

I need to filter bundles that have 2 or more records (arrays). So how exactly should it be set in the filters settings please?

In the example above, you would change your test to

{{ length(2.array }}

Or something similar.

L

You are using the wrong OPERATOR.

Change Numeric operator to ARRAY operators: Array Length

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

1 Like

It works perfectly! Thank you very much for your help.