Collection from airtable to Array

Hi !

Do anyone has an idea on how to transform a collection that I get from Airtable to an Array in which each row is the data contained in one collection ?

Thanks,
Alex

Welcome to the Make community!

You can use the built-in function toArray

e.g.:

toArray(collection)

For more information, see https://www.make.com/en/help/functions/array-functions#toarray--collection-

Then, you can use map and get functions to extract the item values in the array.

If you need further assistance, please provide the following:

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.

Following these steps will allow others to assist you here. Thanks!

samliew – request private consultation

2 Likes

Hi,

it’s the initial poster of the post (i’m on another account).

Here is a screenshot of the dataset. I would like to transform it into an array.

The output from Airtable looks like this :

@La_Cravate_Solidaire try toArray function to convert collection into array.

Princy Jain
Make consultant,
For consulting support: Follow up Automated

One way of converting that text to an array is simply by using the built-in function split

e.g.:

{{ split(41.text; newline) }}

For more information, see https://www.make.com/en/help/functions/string-functions.html#split--text--separator-

samliew – request private consultation

2 Likes

Thanks all for your responses. It helped a lot !

No problem, glad I could help!

1. If you have a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

others can save time when catching up with the latest activity here, and

  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

samliew – request private consultation

1 Like