Working with Excel Export and Import in Backoffice Product Cockpit

Export your data, edit it in an Excel file, and import back to Backoffice Product Content Management. You can also create new items in the Excel template file and import them to the Backoffice application.

Open this video in a new window

Exporting an Excel File

Export your data from the Backoffice application to the Backoffice Excel file.

Procedure

  1. Go to your Products list.
  2. Choose the products you want to export.
    • Export all products in the list
    • Export all the displayed products
    • Select products in the list
    • Run search with specified criteria and then export products from your search results
  3. Click the Export Excel action in the Collection Browser toolbar.
  4. If you have a safety threshold set, and the number of your items exceeds the set threshold number, you get a warning message asking you about the continuation of your export. You can either cancel the action, or confirm it.

    There is also a property defining the maximum number of rows to export. By default, the number is 2000. For details, see Excel Export Action.

  5. Choose the products attributes you want to export to your Excel file. The mandatory attributes are automatically selected, they depend on the item type you're exporting. To add additional attributes, select them in the Excluded attributes column, and click the ADD button. The attributes are added to the Included attributes column. If you decide to remove any of the added attributes, you can do so by selecting them in the Included attributes column, and clicking the REMOVE button. The attributes are back in the Excluded attributes column. The wizard also allows you to search for your attributes, if you start typing the text in the search field, the attributes list changes at runtime to fit your search criteria. If you want to add all the optional attributes, you can do it by choosing the Include all attributes button that is visible at top of the wizard. If you select the localized attributes, you can also choose their language by opening the collapsible list .
  6. You can also select Classification Attributes that you want to export to your Excel file. Go to the next step of the wizard.
  7. Click the EXPORT button to start the exporting process.

    Microsoft Excel opens with the spreadsheet including all your selected items and attributes.

Editing an Excel File

Edit the data it the Backoffice Excel file.

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-28_1201.

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. Each part of the pattern should be separated by 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.

You can add a column in the Excel sheet with an attribute that wasn't selected in the export wizard. To do this, select the cell of the first row in the first empty column. When you click the arrow on the right side of the column, you can select the attribute you want to add.

For details and examples how to fill in the Backoffice Excel file, see Backoffice Excel File.

Importing Excel

Import the data from the Backoffice Excel file to the Backoffice application.

Prerequisites

To be able to import data using the Excel sheet, you need:
  • Write permission, for the Catalog Version into which the data is imported

  • Create permission, for the updated or new items you want to upload

  • Edit permission, for the ProductFeature type, which holds the classification data, if you want to import classification attributes

Context

The example shows importing the data from the previously exported Excel sheet with products that already existed in Backoffice. However, you can also import new products, after filling in the Backoffice Excel template spreadsheet.

Procedure

Open this video in a new window

Open this video in a new window

  1. Go to your Products list visible in Collection Browser.
  2. Choose the Excel Import action to open the import wizard.

  3. Choose the file you want to upload. You can upload both an Excel sheet with a list of items, and a zip file containing media. To relate the zipped media with the Excel file, fill in the image and thumbnail columns in the Excel sheet.

    You can fill in the Excel sheet using, for example, the following format for Images and Thumbnails:

    • filePath:code:catalog:version:folder

    Where:

    • filePath - defines the file in the uploaded zip, you can also specify sub directories
    • code - is the code of media. If empty and filePath is defined, then it is generated. Providing existing media code, in pair with the catalog, results in updating media content.
    • catalog - the catalog for media
    • version - the catalog version for media
    • folder - if provided, defines where the media are stored in the root folder.

    Your selected file is visible at the bottom of the wizard.

  4. Choose the IMPORT button. During the Excel file import, the data validation process takes place. If there are no errors in your Excel file, the import is started. If there are any errors preventing the application to import the data, you get a notification about validation errors. You can view the errors in the pop-up window that is displayed, or download a validation report. There are three types of validation notifications: error, warning, and info. If you have an error notification, you're not able to import your Excel file at all. However, if there are only warning or info messages you can still import the file using the IGNORE & IMPORT button.

    When the import job finishes, you get a notification in the Processes Widget. You can check the details there.

  5. The changes you made in the Excel file are already applied to your items.