How to iterative get objects from deeply nested collections and arrays

Hi all,

I have a Table in JotForm Form and get deeply nested Arrays. I need the data from theses nested array to create airtable records (rows). Thats the reason I need to itarate through the array and create a new record / row in airtable for each array. So i need some kind of while or for loop?

so for example if I got 3 Arrays e.g with Name, Email, Role.

So I have:
1 Name
1 Email
1 Role

2 Name
2 Email
2 Role

etc
etc

For each of this array i want to create a new row in Airtable with name, email, role in each column.

So here are the deeply nested Arrays

How to get the needed data AND create rows for each array set?

Thank you much

Welcome to the Make community!

Please provide the input and output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-input-bundle.txt (12.3 KB)
module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

3 Likes
[
    {
        "action": "",
        "webhookURL": "https://hook.eu1.make.com/u0v9clbdcl5oe7j3l6kjg1e25ebjdopsasdfg",
        "username": "xxxxxx445",
        "formID": "240621492120040",
        "type": "WEB",
        "customParams": "",
        "product": "",
        "formTitle": "Closer Formular",
        "customTitle": "",
        "customTitleParams": "Array",
        "submissionID": "5853172434027738747",
        "event": "",
        "documentID": "",
        "teamID": "",
        "subject": "",
        "deviceIDs": "Array",
        "isSilent": "",
        "customBody": "",
        "customBodyParams": "Array",
        "trackAction": "Array",
        "rawRequest": "{\"slug\":\"submit\\/240621492120040\",\"jsExecutionTracker\":\"build-date-1709464291790=>init-started:1709508042147=>validator-called:1709508042151=>validator-mounted-true:1709508042151=>init-complete:1709508042153=>onsubmit-fired:1709508043654=>submit-validation-passed:1709508043659\",\"submitSource\":\"form\",\"buildDate\":\"1709464291790\",\"q4_email\":\"xxx@gmail.com\",\"q5_gekaufteProdukte\":[\"E-Mail Marketing (D4U)\",\"Sonstige (Agentur)\"],\"q6_zugange\":[[\"AP1\",\"yyy@gmail.com\",\"Gesch\\u00e4ftsf\\u00fchrung\"],[\"AP2\",\"yefpie@gmail.com\",\"Webmaster\"],[\"AP3\",\"zzz@gmail.com\",\"Entwickler\"],[\"\",\"\",\"\"],[\"\",\"\",\"\"]],\"event_id\":\"1709508042147_240621492120040_qbMan7x\",\"timeToSubmit\":\"1\",\"validatedNewRequiredFieldIDs\":\"{\\\"new\\\":1}\",\"path\":\"\\/submit\\/240621492120040\"}",
        "fromTable": "",
        "appID": "",
        "pretty": "E-Mail Ansprechpartner:xxx@gmail.com, Gekaufte Produkte:E-Mail Marketing (D4U) Sonstige (Agentur), Zugänge:Array Array Array Array Array",
        "unread": "",
        "parent": "",
        "ip": "82.115.113.204",
        "request": {
            "slug": "submit/240621492120040",
            "jsExecutionTracker": "build-date-1709464291790=>init-started:1709508042147=>validator-called:1709508042151=>validator-mounted-true:1709508042151=>init-complete:1709508042153=>onsubmit-fired:1709508043654=>submit-validation-passed:1709508043659",
            "submitSource": "form",
            "buildDate": "1709464291790",
            "q4_email": "yefpie@gmail.com",
            "q5_gekaufteProdukte": [
                "E-Mail Marketing (D4U)",
                "Sonstige (Agentur)"
            ],
            "q6_zugange": [
                [
                    "AP1",
                    "yyy@gmail.com",
                    "Geschäftsführung"
                ],
                [
                    "AP2",
                    "xxx@gmail.com",
                    "Webmaster"
                ],
                [
                    "AP3",
                    "zzz@gmail.com",
                    "Entwickler"
                ],
                [
                    "",
                    "",
                    ""
                ],
                [
                    "",
                    "",
                    ""
                ]
            ],
            "event_id": "1709508042147_240621492120040_qbMan7x",
            "timeToSubmit": "1",
            "validatedNewRequiredFieldIDs": "{\"new\":1}",
            "path": "/submit/240621492120040"
        }
    }
]

Iterate the question array, then use the built-in function get

Screenshot_2024-03-04_220334

3 Likes

Thank you much for helping out.

In the output of the jotform module “q6_zugange” is available. In the interator is not:

image

When I use iterator the Data from the first Entry is available as Bundle and I can get it in the variable.

Right now the, in my last try I have 3 Array in that Array:

When I go through this with the Iterator I only get the first one.

But I need to go through all 3 Arrays to process each set through the whole flow

Any help on this?

Thanks

I don’t understand what you mean by this.

I’ve used your output bundle provided above.

Running it allows you to map the “q6_zugange” into the Iterator module.

Output

2 Likes