Convert a flat row in Airtable, into an array of collections

Hi. I have a Table in Airtable, which contains a flat list of columns like LineItem1.Title, LineItem1.Value, LineItem1.TaxCode, LineItem2.Title, LineItem2.Value, LineItem2.TaxCode etc. (4 line items in total)

The reason that these are not actually another table, is because they are generated using Formulas.

I would like to insert these into Xero by the Create an Invoice module. The issue is that Xero throws an error if the Value is 0, as it expects it to be filled in. I would like to be able to convert this flat list in a collection, an array of LineItems.

I was trying to use an Array Aggregator, to aggregate into an array but I can only output 1 of the 4 line items this way, as the source can only be used once.

Any clean way how one can convert a one collection, into 4 items in an array?

Below is a screenshot:

Welcome to the Make community!

1. Screenshots of scenario, module fields

We would appreciate it if you could upload screenshots here instead of linking to them outside of the forum. This allows us to zoom in on the image when clicked, and prevent tracking cookies from third-party websites.

You can upload images here using the Upload Icon in the rich-text editor:
Screenshot_2023-10-07_111039

Alternatively, you can also drag-drop multiple images directly into the text editor.

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Input/Output bundles

Please provide the output bundles of the Airtable search module 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-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!

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

2 Likes

Hi. I understand, I’ll ensure I’ll upload screenshots directly. I’ve updated it accordingly. I don’t have a specific scenario running or input/output bundles, as I am still in the process of creating the scenario as I’m not sure how one can do this.