...
If using the Xml2Metadata parser, metadata must be preconfigured.
Here is an example of a an Xml2Metadata configuration file:
...
Excel parser
With Excel metadata, the configuration is part of the sheet. The MetafieldIdRow config specifies which row to find it. All other rows until DataStartRow are ignored. Make sure to be Be aware of ComboMatchStyle - it is set in the import configuration. If it is not explicitly set it defaults to the textvalue. ComboSeparator defaults to “;” (semicolon). Even though the configs are called combo... they are also in effect also for tree-type metafields.
The simplest configuration is just a metafield ID set. Let's say we need to update a MultiComboValue with ID 50521. That might look like this:
...
Overriding ComboSeparator and/or ComboMatchStyle
Lets Let's say an import configuration holds this default configuration (equivalent to not having these configs specifed specified at all):
<ComboSeparator>;</ComboSeparator>
<ComboMatchStyle>TextValue</ComboMatchStyle>
Now, the metafield row accepts a simple notation like this: Metafield-ID ComboSeparator ComboMatchStyle.
...
In this example, we tell the importer this is Metafield 50521, the combo separator is “,” (comma), and we want to match against the optionvalue.
It's important that there is There must be a space in between the values. It's not necessary to specify ComboMatchStyle if the default is preferred, but it is necessary to set ComboSeparator if in need of setting ComboMatchStyle. So:
...