The ‘Field Mappings’ menu option allows you to create a custom mapping between the fields defined in your customer’s respective log and the fields available in our system.
On the left-hand side of the mapping tool, select the target field for the desired report (e.g. OCI), then select the desired mapping type (Database, Fixed Value, Dynamic (in Gateway mode only)).
On the right-hand side, select the source field and/or the value to be mapped to the respective protocol field.
Database: In the “Source field” field, select a field from our data model that is to be used as the data source for the selected target field during transmission.
Fixed Value: In the “Source Field” field, enter a fixed value which is to be output in the selected target field when data is transmitted to the calling ERP system.
Dynamic: This mapping type is only available in Gateway mode. Here, during the return transmission from the called shop system, it is possible to pass on and map additional data within the “product” object.
...
"additionalProp1": [
{
"label": "string",
"value": "string"
},
{
"label": "string",
"value": "string"
}
],
...
Example: In the “product” object, you also pass the “classifications” array, which in turn contains objects with the keys label and value. Here, you can enter the key name classifications in the first input field and the value of the label key in the second. The value field of the same object will now be used for field mapping.
Depending on whether the field mapping is created for OCI or cXML, additional values are available.
For cXML, the following additional values from the customer settings are available:
No specific values are available for OCI
Regardless of the protocol, the following values from the shopping basket item are available:
Field transformations allow you to dynamically modify values in your field mappings before they are transferred to the target system. Using transformations, you can convert input values into other values based on defined rules.
To create or edit a transformation for a field:
Two types of transformation are currently supported:
"Replace Value" (If transformation): This transformation checks whether the input value matches a defined value and, if necessary, replaces it with another value.
"Append To" (AppendTo transformation): This transformation allows you to append a fixed text or the content of another product field to the value of the current field.
With the "Append To" transformation, you have two options:
Append fixed value: Select this option to append static text to the field value.
Append value from another field: Select this option to append the value of another product field.
If your source system uses status values such as “0” and “1”, but the target system expects “Inactive” and “Active”:
If your source system uses language codes in the format “de-DE”, but the target system only expects “de”:
If you want to ensure that empty values are replaced by a default value:
If you want to append units of measurement to numerical values:
If you want to combine the product number with the product description: