With the CSV import block, you can add new records to an existing table in your base from a CSV file.
Watch this video to learn more about how to set up and use a CSV import block, or read on for further information.
After installing a CSV import block, you can drag and drop a CSV file onto the block. After your file gets uploaded, you'll be brought to a screen where you can map exactly how the information from the CSV gets put into your table.
Before mapping the fields, make sure you have the correct table selected.
The block will automatically try to detect if the first row of your CSV is comprised of headers or not, and check the "First row of CSV file is headers" option accordingly. If this option is checked, the columns in the field mappings section of the block will be named after the CSV's column headers. If this option is not checked, the columns in the field mappings section of the block will be given generic names like Column, 1, 2, 3, and so on.
The left side of the Field mappings section (with the toggles) shows the fields in your table, and the right side (with the dropdowns) shows the columns of the CSV. If the columns of your CSV and names of the fields in your table have matching names, the block will automatically try and match them. Otherwise, you can map the columns of the CSV to whichever fields you'd like.
To map a value, select the field toggle, then choose a CSV column from the dropdown menu. Repeat this process for as many fields as you want.
Note that you don't have to import any fields you don't need to, and the order and names of the fields in your CSV don't necessarily have to match the order and names of the fields in your Airtable base. As you alter the field mappings, you can look at the right side of the block, which shows samples of the records that will be created according to the specified mappings.
Once you're ready, click the Create records button.
The block will remember your field mappings the next time you import another CSV, speeding up the process if you plan on importing CSVs again and again as part of your workflow.