File Format - Item Option Type

Item Option-Type File Format

The first line of an Option Type CSV file must be the header row.

An option type 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 type instance must include fields specified under Base Headers and Multi-Column Headers. Additional rows of an option type instance may only include fields specified under Multi-Row Headers.

Spec

The following table shows the accepted CSV columns for the option types 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 HeaderData TypeGroupRequiredDescription
Option Type IDstringYesExternal identifier of the record
Display StylestringNoHow the option type should be displayed on the app (‘text’, ‘color’, etc.)
Sort OrderintegerNoOrder in which options are displayed in picklist
Localized PresentationstringLocalized DataNoPresentation of the preference value localization (URL, Hex or String)
Localized Language IDintegerORstringLocalized DataNoLanguage ID for the language in which this value appears; use 0 if it is not localized (externalId resolvable)
Localized NamestringLocalized DataNoName of the Role (must be unique)
Localized Presentation NstringLocalized Data NNoPresentation of the preference value localization (URL, Hex or String)
Localized Language ID NintegerORstringLocalized Data NNoLanguage ID for the language in which this value appears; use 0 if it is not localized (externalId resolvable)
Localized Name NstringLocalized Data NNoName of the Role (must be unique)
Custom Attribute IDstringAttribute ValuesNoAttribute to be used as key in the key/value pair (externalId resolvable)
Custom Attribute ValuestringAttribute ValuesNoValue to appear in this key/value pair
Custom Attribute Language IDintegerORstringAttribute ValuesNoLanguage ID for the language in which this value appears; use 0 if it is not localized (externalId resolvable)
Custom Attribute N IDstringAttribute Values NNoInternal identifier for attribute ID
Custom Attribute N ValuestringAttribute Values NNoValue to appear in this key/value pair
Custom Attribute N Language IDintegerORstringAttribute Values NNoLanguage ID for the language in which this value appears; use 0 if it is not localized (externalId resolvable)

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

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 type 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:

Multi-Row Approach
Column Name
Multi-Column Approach
Column Name
DescriptionType
Localized Presentation(Required)*Localized Presentation NActual text displayed for the option type localized to the specified languagestring
Localized Language ID(Required)*Localized Language ID NID of the language in which the record appears.
Integers will be resolved to internal identifiers
integer, string
Localized Name(Required)*Localized Name NName of the option type localized to the specified languagestring

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 type 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:

Multi-Row Approach
Column Name
Multi-Column Approach
Column Name
DescriptionType
Custom Attribute IDCustom Attribute N IDIdentifier of the custom attributestring
Custom Attribute ValueCustom Attribute N ValueValue of the attributestring
Custom Attribute Language IDCustom Attribute N Language IDLanguage of the attribute.
Integers will be resolved to internal identifiers
integer, string

Where N is some positive integer

Option Types CSV Example

See the following two Option Type CSV sample file.

Option Type Sample 1