File Format - Item Option Value
Item Option-Value File Format
The first line of an Option Value CSV file must be the header row.
An option value instance is a group of rows in the CSV file that are sequential and include the same required fields. The first row of an option value instance must include fields specified under Base Headers and Multi-Column Headers. Additional rows of an option value instance may only include fields specified under Multi-Row Headers.
Spec
The following table shows the accepted CSV columns for the option values entity. Note that any columns including N
denote a dynamic integer. A column specified as Field N
signifies that you can use columns Field 1
, Field 2
, …, Field N
to allow for multiple values per record of the given field, similar to an array.
CSV Header | Data Type | Group | Required | Description |
---|---|---|---|---|
Option Value ID | string | Yes | External identifier of the record | |
Option Type ID | string | Yes | ID of the Option Type of which this is a possible Option Value (externalId resolvable) | |
Value | string | No | Value to appear in this key/value pair | |
Sort Order | integer | No | Order in which options are displayed in picklist | |
Localized Presentation | string | Localized Data | No | Presentation of the preference value localization (URL, Hex or String) |
Localized Language ID | integerORstring | Localized Data | No | Language ID for the language in which this value appears; use 0 if it is not localized (externalId resolvable) |
Localized Name | string | Localized Data | No | Name of the Role (must be unique) |
Localized Presentation N | string | Localized Data N | No | Presentation of the preference value localization (URL, Hex or String) |
Localized Language ID N | integerORstring | Localized Data N | No | Language ID for the language in which this value appears; use 0 if it is not localized (externalId resolvable) |
Localized Name N | string | Localized Data N | No | Name of the Role (must be unique) |
Custom Attribute ID | string | Attribute Values | No | Attribute to be used as key in the key/value pair (externalId resolvable) |
Custom Attribute Value | string | Attribute Values | No | Value to appear in this key/value pair |
Custom Attribute Language ID | integerORstring | Attribute Values | No | Language ID for the language in which this value appears; use 0 if it is not localized (externalId resolvable) |
Custom Attribute N ID | string | Attribute Values N | No | Internal identifier for attribute ID |
Custom Attribute N Value | string | Attribute Values N | No | Value to appear in this key/value pair |
Custom Attribute N Language ID | integerORstring | Attribute Values N | No | Language ID for the language in which this value appears; use 0 if it is not localized (externalId resolvable) |
Category | string | Categories | No | Array of Category IDs representing the Categories to which this Product belongs (externalId resolvable) |
Category N | string | Categories N | No | Array of Category IDs representing the Categories to which this Product belongs (externalId resolvable) |
Base Headers
The following headers are optional. Fields for these columns must be specified in the first row of an option value instance, otherwise data will be lost.
Column Name | Description | Type |
---|---|---|
Option Type ID | ID of the option type of which this is a possible value | string |
Sort Order | Sort order of the option type | integer |
Value | Value associated with this option value | string |
Category | ID of the option type category | string |
Category or Category N (Multi-Column) | ID of the option type category | string |
Groups
A group is a class of headers that relate to one another, and may allow for multiple pieces of information to be presented. For example, a customer can have multiple emails, addresses, phone numbers, and more.
Localized Data (Required)
There are two ways that localized data can be formatted in your CSV file: A Multi-Row Approach or Multi-Column Approach.
Multi-Row Approach
In this approach, one set of column headers is used alongside multiple rows of data. To allow for multiple rows of data, additional rows must include the same Required Headers fields.
Multi-Column Approach
In this approach, multiple sets of column headers may be used alongside one row (the first row) of an option value instance. To use these columns multiple times, an identifying number must exist for N and be unique for every new set of columns.
Columns from the Multi-Row Approach cannot be mixed with columns from the Multi-Column Approach in a CSV file for the Localized Data group.
The following columns may be included:
Required | Multi-Row Approach Column Name | Multi-Column Approach Column Name | Description | Type |
---|---|---|---|---|
Yes* | Localized Presentation | Localized Presentation N | Actual text displayed for the option value localized to the specified language | string |
Yes* | Localized Language ID | Localized Language ID N | ID of the language in which the record appears. Integers will be resolved to internal identifiers | integer, string |
Yes* | Localized Name | Localized Name N | Name of the option value localized to the specified language | string |
Where N is some positive integer.
Custom Attributes
There are two ways that custom attributes can be formatted in your CSV file: A Multi-Row Approach or Multi-Column Approach.
Multi-Row Approach
In this approach, one set of column headers is used alongside multiple rows of data. To allow for multiple rows of data, additional rows must include the same Required Headers fields.
Multi-Column Approach
In this approach, multiple sets of column headers may be used alongside one row (the first row) of an option value instance. To use these columns multiple times, an identifying number must exist for N and be unique for every new set of columns.
Columns from the Multi-Row Approach cannot be mixed with columns from the Multi-Column Approach in a CSV file for the Custom Attributes group.
The following columns may be included:
Required | Multi-Row Approach Column Name | Multi-Column Approach Column Name | Description | Type |
---|---|---|---|---|
No | Custom Attribute ID | Custom Attribute N ID | Identifier of the custom attribute | string |
No | Custom Attribute Value | Custom Attribute N Value | Value of the attribute | string |
No | Custom Attribute Language ID | Custom Attribute N Language ID | Language of the attribute. Integers will be resolved to internal identifiers | integer, string |
Where N is some positive integer.
Option Values CSV Example
See the following Option Type CSV sample file.