Docs

Load data from a file

How to add catalog items with a CSV file — preparing the file, uploading, mapping columns, checking, applying and reading the report.

In this guide you add two new items to a catalog with one file and make sure they are there. The example is Nordtone: an audio cable and a speaker cover join the “Accessories” catalog. Roles with the “Catalogs → Edit and import” permission upload files and run imports; every role with “Catalogs → View” sees the import log.

Decision table rows and agents are imported the same way — the differences are listed at the end.

What you need

  • The “Catalogs → Edit and import” permission — the system “Administrator” and “Operator” roles have it.
  • An active catalog: an inactive one does not accept imports. How the catalog is maintained doesn't matter — imports work for manually maintained catalogs and for catalogs from the master system alike (catalogs).
  • The catalog fields that will receive the data, such as “Price”. A file does not create categories: if items are sorted into categories, the categories must exist and be active beforehand (categories).

Prepare the file

The file is XLSX or CSV, and its first row holds the column headers. For this example, save a file named accessories-new-en.csv in UTF-8 in a text editor, with this content:

Code;Name;Name (RU);Price;Category
aux_cable;3.5 mm audio cable;Аудиокабель 3,5 мм;7.00;power
speaker_cover;Go Mini speaker cover;Чехол для колонки Go Mini;13.00;protection

The item code column is required: the code tells the CRM whether to create an item or change an existing one. The category is given by its code.

Upload the file

  1. Open Catalogs, the “Accessories” catalog and its Import tab.
  2. Click Upload file.
  3. In the File field, pick accessories-new-en.csv.
  4. Leave the CSV encoding field at Detect automatically, and in the CSV delimiter field pick Semicolon.
  5. Click Upload. The import page opens with the file's columns.
The Upload file dialog: accessories-new-en.csv is picked, the delimiter is Semicolon

The file limit is shown in the upload dialog — 10 MB and 10,000 rows by default. Formats and encodings are covered in Uploading a file.

Map the columns

Under File columns, each column shows sample values and the catalog field it will be written to. The CRM fills the fields in itself: from the previous import into this catalog or by matching the header to a field name. Check that the result looks like this:

ColumnCatalog field
CodeItem code
NameName (en)
Name (RU)Name (ru)
PricePrice (price)
CategoryCategory (code)

If a column shows another field or Do not import, pick the right one in its list. A field can be picked for one column only. Details are in Mapping columns.

Check and apply

  1. Leave the Mode field at All or nothing: any row error means nothing is written.
  2. Leave Deactivate items missing from the file unticked — otherwise every other accessory is deactivated.
  3. Click Check. This is a dry run: the CRM reads the file but writes nothing. The page refreshes by itself: the state becomes “Checked”, and the Report section shows “Rows: 2” and “Created: 2”.
  4. If the report lists errors, fix the file and upload it again.
  5. Click Apply and confirm with Apply in the Apply the import? dialog.

The import runs in the background. When it finishes, the state becomes “Applied”, and the report shows “Created: 2” and the new catalog version. An applied import can't be run again — upload the file once more for the next change.

Check the result

  • The catalog's Items tab lists “3.5 mm audio cable” and “Go Mini speaker cover” with their price and category (items).
  • The History tab shows a new version: both items created, with you as the author (history).
  • The Import tab has a log row with the file, the “Applied” state, the row count and the version change.

The new items can be picked in interactions — for example, in the “Accessory” line of a purchase. An item can't be deleted; it is deactivated with the Deactivate button in its row. The import file is kept for 30 days, while the log row and the report stay (file retention).

Table rows and agents

The steps are the same — upload, mapping, check, apply. What differs is the button, the permission and the key field:

  • Decision table rows — the Import button on the table page, the “Decision table rows → Edit and import” permission; the key is the row code. Only rows that changed get a new version (table rows).
  • Agents — the Import button above the agent registry, the “Agents → Create and edit” permission; the key is the external id. Imports don't change agents' personal codes (agents).

In both cases, an export of the same data gives you a template: it is in the import format.

What's next

  • File imports — modes, states, row errors and deactivating missing records.
  • Catalogs — editing items by hand, categories and export.
  • Export a list to a file — the way back: CRM data in Excel or CSV.
  • The master system can write catalog items and agents without files — through the API.