Backoffice Excel File

Editing a Backoffice Excel file to conduct the Backoffice Excel file import.

The name of the exported Excel file contains the name of the exported item, with a date and time of export, for example: Product_2018-03-05_1201.

When you export an Excel file, there might be more than one sheet visible. All selected items are grouped by their typeCode, and items for a particular typeCode are put together into a given sheet.

The header of the Backoffice Excel file consists of three rows.
  1. The first row, represents information about an attribute. It consists of an attribute name and it can contain four special characters:
    • * Indicates that an attribute is required (not optional)
    • ^ Indicates that an attribute is unique
    • + Indicates that an attribute is a collection (multivalue). The elements are separated by a coma.
    • = Indicates that an attribute is a read-only. A read-only attribute is a readable, unique, and not writable one.
    The principle of the operation is identical to an impex: if there is more than one attribute indicated as unique, then composition of all unique attributes has to be unique.
  2. The second row, contains information about a pattern for a reference attribute or a date format for a date type. Separate each part of the pattern with a colon. For example, a pattern for a catalog version should look like: CatalogVersion.version:Catalog.id . The information about an expected pattern is taken from the particular translator.
  3. The third row is to provide default values for the whole column. The values can be of simple, enum, or reference types. For example, if you export the supercategories attribute, and all products belong to the same catalog and catalog version, but they belong to the different categories, then you can provide default value for a catalog and a catalogVersion. For example: :hwcatalog:Staged. The number of colons has to be the same as in the pattern row (the second row). If you want to provide default value only for a version, the cell should contain ::Staged.

When the default values are provided, you can omit these values in data rows. For example:

Attribute

Pattern

Default values

Data row

Comment

CatalogVersion CatalogVersion.version:Catalog.id

Staged:hwcatalog

No default values, therefore the data row is taken into account.

CatalogVersion CatalogVersion.version:Catalog.id Staged hwcatalog

Default version was provided, and the version was omitted in the data row, therefore the version is taken from the default values.

CatalogVersion CatalogVersion.version:Catalog.id Staged:hwcatalog Online:

Default catalog and version were provided. The catalog was omitted in the data row, but the version was written. Therefore the result is Online:hwcatalog. The Data row starts with a colon.

Supercategories Category.code:CatalogVersion.version:Catalog.id Category:Staged:hwcatalog CL2100,HW1220::Middle

Supercategories attribute represents a collection of categories, therefore each category is separated by a coma. The user provided a default value for the catalog and the catalog version. In the data row, there are two categories. First one is CL2100, the catalog and version are omitted. Therefore these values are taken from default values. The result category is: CL2100:Staged:hwcatalog. The second category is HW1200 for the Middle version. The catalog was omitted and it is taken from the default value: hwcatalog. The result category is : HW1200:Middle:hwcatalog.

When a not empty list of classification class is exported, then the supercategories column is exported automatically. If you create a product, then you should assign the new product to the appropriate classification class.

Examples of default values for a classification attribute with a unit

Attribute

Pattern

Default values

Data row

Comment

Classification attribute with unit value:unit[unitA,unitB]

12:unitA

No default values.

Classification attribute with unit value:unit[unitA,unitB] :unitB

12:

As the default unit was provided, it can be omitted in the data row.

Examples of default values for classification range attribute

Attribute

Pattern

Default values

Data row

Comment

Classification range attribute RANGE[value;value]

RANGE[10;20]

A range from 10 to 20.

Classification range attribute RANGE[value;value] RANGE[10;] RANGE[;20] A range from 10 to 20, the default is the range start value.
Classification range attribute RANGE[value;value] RANGE[;20] RANGE[10;] A range from 10 to 20, the default is the range end value.
Classification range attribute RANGE[value;value] RANGE[10;20]

A range from 10 to 20, the defaults are the range start and end values.
Classification range attribute RANGE[value;value]

RANGE[10;] A range from 10 (to empty).
Classification range attribute RANGE[value;value]

RANGE[;20] A range from 20 (to empty).
Classification range attribute with units RANGE[value:unit[unitA;unitB];value:unit[unitA;unitB]]

RANGE[10:unitA;20:unitA] A range from 10 of a unitA to 20 of a unitA.
Multiple classification range attributes (multivalue) RANGE[value;value]

RANGE[10;20], RANGE[30;50] A range from 10 to 20, and from 30 to 40.