Skip to content

CSV parser

How-to6 minExpert

Before you start

A CSV parser reads a CSV file and makes each row a record in a list. Use it when a buyer uploads a price list or a list of invoice lines and the workflow must process each row.

Use it for a CSV file in a file field. Then a Loop goes through the rows, or a Record manager with Batch create saves them. For Excel files downloaded by a browser, the Web agent can read the table itself.

  1. Click + and choose CSV parser. It sits in the Data group.
  2. Under Read the file in, choose the file field that holds the CSV.
  3. Under Columns, click Add a column. Type the header as it appears in the file and choose its type.
  4. Under Result, type a name in Name it.
A CSV parser step selected, with a file field chosen, three columns listed with their types and a result name.
    Read the file in takes a file field.
    Each Column has a header name and a type: Text, Whole number or Decimal.
    Name it names the list of rows.
SettingWhat it does
Read the file inThe file field that holds the CSV
ColumnsThe columns to read. Type the header; Beezr shows Read as the name it uses
TypeText, Whole number or Decimal
Name itThe list’s name

A buyer uploads prices.csv with the headers Item, Unit Price and Quantity. Karim adds three columns. The editor shows them as item, unit_price and quantity. He sets the last two to Decimal and Whole number, and names the list priceRows.

  • The first row is the header. Every row after it becomes one record.
  • Choose a type for each column; a column read as text stays text.
  • Write numbers with a dot as the decimal point, for example 1234.50.

Check yourself

A CSV header reads "Unit Price". What name do you use for the column?
Show the answer

unit_price. The parser lowercases each header and turns spaces into underscores. Beezr shows the name it reads.

What must be in the file field when the CSV parser step runs?
Show the answer

The CSV file. Make sure a file is in the file field before the step runs, so the parser has a file to read.

What's next

Last checked