How to use values from array

What are you trying to achieve?

Hi, im a new user here, and i try do it a scenario, i use a integrator and and array agregator, but i need a use a HTTP to send with API, the problem is, how i used the values inside the arrays? becaus i dont see in the tips,

Steps taken so far

i tryng so much conditions, but not worked last now

Screenshots: scenario setup, module configuration, errors



Welcome to the Make community!

You can use the built-in functions map and get to access variables within an array.

To do this, you can use the built-in function map

{{ map(complex array; key;[key for filtering];[possible values for filtering separated by a comma]) }}

and the built-in function get

{{ get(object or array; path) }}

You can also combine map and join to combine the variables within an array into a single text string.

and the built-in function join

{{ join(array; delimiter) }}

For more information, the function’s documentation can be found in the Help Centre. and the “Mapping with Arrays” link below. You should also complete the tutorials in the Make Academy, especially Using get() and map() functions.

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

Getting Started

Help Centre Basics

Articles & Videos

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.

i trying so every tricks and tips, but not worked, now i
just trying do this,


i try get values filtering from the array agregator, the TEXT is ok, but the other types not worked

If you need to filter from a complex array you will need the map() function.

As your information is not complete enough to give a final answer I would suggest to read some more on get and map functions: 🚀 Learn Get() and Map() Functions in 5 Minutes - #4 by Mohamed_Jahar

Hopefully that helps you get a better understanding of these functions.

this video is amazing and very simple, but my arrays, have data in diferents bundles,


and a catch for the field name,

but this not wordked, and i dont have more idea to do

Thanks to @samliew for this perfect how-to… tell us more about your scenario…

To allow others to assist you with your scenario, please provide the following:

1. Relevant Screenshots

Could you please share screenshots of your full scenario? Also include screenshots of any error messages, module settings (fields), relevant filter settings (conditions), and module output bundles. We need to see what you’re working with to give you the best advice.

You can upload images here using the Upload icon in the text editor:

2. Output Bundles of Modules

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

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 manuallyAdd 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.

Sharing these details will make it easier for others to assist you.

Of course, here is the output bundles

[
    {
        "field_id": 862628,
        "field_name": "CPF/CNPJ",
        "field_code": null,
        "field_type": "text",
        "values": [
            {
                "value": "25488756824"
            }
        ],
        "__IMTINDEX__": 1,
        "__IMTLENGTH__": 6
    },
    {
        "field_id": 864196,
        "field_name": "Mensagem do lead",
        "field_code": null,
        "field_type": "text",
        "values": [
            {
                "value": "okok mensagem"
            }
        ],
        "__IMTINDEX__": 2,
        "__IMTLENGTH__": 6
    },
    {
        "field_id": 709692,
        "field_name": "Email",
        "field_code": "EMAIL",
        "field_type": "multitext",
        "values": [
            {
                "value": "teste@teste.com",
                "enum_id": 588142,
                "enum_code": "WORK"
            }
        ],
        "__IMTINDEX__": 3,
        "__IMTLENGTH__": 6
    },
    {
        "field_id": 862630,
        "field_name": "Data de nascimento",
        "field_code": null,
        "field_type": "birthday",
        "values": [
            {
                "value": 1741143600
            }
        ],
        "__IMTINDEX__": 4,
        "__IMTLENGTH__": 6
    },
    {
        "field_id": 862632,
        "field_name": "Estado Civil",
        "field_code": null,
        "field_type": "select",
        "values": [
            {
                "value": "Solteiro(a)",
                "enum_id": 719966,
                "enum_code": null
            }
        ],
        "__IMTINDEX__": 5,
        "__IMTLENGTH__": 6
    },
    {
        "field_id": 709690,
        "field_name": "Phone",
        "field_code": "PHONE",
        "field_type": "multitext",
        "values": [
            {
                "value": "47335877854",
                "enum_id": 588130,
                "enum_code": "WORK"
            }
        ],
        "__IMTINDEX__": 6,
        "__IMTLENGTH__": 6
    }
]

blueprint (2).json (27.1 KB)
thank you for the patience, i’m new here, i send the blueprint and bundles.

i sending the scenery actually, I just change so much times

No problem, we’ll try to help you as best we can.

First of all, you can skip the iterator and tools module. You don’t need to “process” multiple bundles, you just need specific field data from a complex array. This is why you only need map()

Reading aloud what I have in this screenshot would give:
“From the complex array Custom Fields Values, I need values.value (value is nested under values), where field_name is equal to phone”.

Hope this helps!

I believe doing a wrong thing, because i do it this exemple, but dont have output.
look this,


here is bundle from get a contact

![image|447x477](upload://6HJpFIAaf30ipGochCf5bKLNQZX.png)


the HTTP, i trying debug only set a TEXT static, in reponse body and worked