Search HoldMyTwist

Browse all posts

Create CSV text from separate records in Make

How to join 2 data to 1 CSV text output in Make Free. Pick your fields and headers. Be sure to check the quoted comma for real export. How to merge 2 records into 1 csv text output in Make Free.

A brass roller press assembling navy and aqua tiles into a blank table on a cream sheet

Use Make Create CSV module to merge two fake records into CSV text.

In this exercise we'll keep it in Make.

Before you start

You can create your make free account (opens in a new tab) or log in. No need to connect another app. Leave practice scenario Inactive Choose Run once.

1. Create two source records

  1. go to Scenarios and click Create scenario
  2. top left give it a name CSV export practice
  3. Add JSON > Parse JSON
  4. Don't set Data structure, and paste the example below in JSON string
  5. Save the module and the scenario. Save anyway if you get the "output is not used" just warning
  6. click Run once and Run anyway for the warning. Take a look at the result JSON, we get 2 bundles from the top-level array.
Text to copy

[{"item":"Notebook, pocket","quantity":2},{"item":"Pencil","quantity":1}]

Full Make editor showing a JSON array with two fictional order records

Full Make editor showing a JSON array with two fictional order records
Open full-size image

2. Choose the CSV columns

English Make - action result closed; add plus to the right of JSON CSV > Create CSV Source Module JSON - Parse JSON [1] fields to aggregate - select item and quantity include headers in first row - Yes other Delimiter delimiter character - comma Newline - LF scenario and module saved

Full Make editor selecting item and quantity for CSV aggregation with headers enabled

Full Make editor selecting item and quantity for CSV aggregation with headers enabled
Open full-size image

Quick takeaway

Create CSV concatenates all of the source bundles into a single text value. The header and delimiter options determine the table. You haven't written any file to your hard drive or cloud. You should take a look at the text first before picking an alternative destination action.

3. Check the single output

  1. click run once

again, deal with the unused output warning as above.

  1. open the bubble above Create CSV
  2. on Output make sure in one bundle you have text with header and these 2 rows.
Text to copy

"item","quantity"
"Notebook, pocket","2"
"Pencil","1"

Full Make editor showing one CSV text output with a header and two quoted rows

Full Make editor showing one CSV text output with a header and two quoted rows
Open full-size image

The comma within the notebook's name is quoted.

Be sure to check header order and how your receiving app parses columns before doing an actual export.

If adding fields, take note of the order of fields in the generated header row. Order in Aggregated fields may not match order. When re-parsing the CSV using CSV headers (recommended) you should use the order in the exported CSV. Even if you successfully run, you may get values with the wrong names. So be sure to look at the parsed record before applying an action to map.

If a column is missing

Run the json source with a good sample of data. Then go back to Aggregated fields. Add all required fields. Select the source which gives the records you are going to aggregate. For a different receiving app: make sure the headers (etc) match the app's documentation requirements. Also the delimiter and newline.

Perhaps it's easier just to do a one-off export in a spreadsheet? Watch out for Free-plan limits if you want to schedule any actions.

Sources: Make CSV modules (opens in a new tab); Make aggregator documentation (opens in a new tab). Screenshots show Make with fictional practice data.

Share this post