Data Mapping
Catalog Manager provides an intuitive way of mapping data, speeding up the integration process.
It loads all the source headers from your feed under All source fields section.

Map Source Fields to Target Fields
Drag and drop your source fields to map to corresponding Rezolve fields on the right.
Once done, click Preview to review the sample data mapping.
Adding Custom Fields
Besides the standard fields provided, you can also create custom fields. To do so, click on Add custom field and drag a source field chip into the row. The custom field name will be updated automatically. You can also assign your preferred data type, rename the custom field, and apply any transformation if required.
Data Transformation
The Standard Fields have fixed Data Types. Data transformation is necessary if the mapped target field has a different format (e.g. String[], Currency, Date) from the corresponding source field.
This can be done effortlessly in the Catalog Manager.
When a transformation is required, an orange Transform button is displayed. Click on it and it will guide you through the necessary steps.
Split one field to a String array value
This is relevant for source fields (e.g. categories, additional_urls, tags) storing multiple values as a single String value, joined together by a special character, such as arrow (>), pipe (|) etc.
We recommend transforming the source field into a String Array (String[]) in the Catalog Manager so that the transformed values can be easily used for filtering and display.

Specify the separator (e.g. >, |, : etc) in the text box on the left, and the values will automatically be transformed in real time. You can preview the source values and transformed values on the right to review the data changes.
Join multiple fields into a String array field
You can drag multiple source fields into a single target field. This usually applies to fields like categories and additional image urls, where your source data is storing these values in multiple separate fields instead of a single field.
As shown in the example above, category_lvl_1, category_lvl_2 and category_lvl_3 are combined to map to the category (String[]) field. For this kind of mapping, the transformation will be automatically applied, but you can still click on the blue Transform button to preview the transformation.
To re-order the sequence of the fields, simply drag and drop the chips on the left.

Concatenate multiple fields into a single String field
This allows the concatenation of multiple fields into one single field. For example, in order to generate a unique product_id, you may want to concatenate your sku and color field together:

You can choose your preferred concatenator, as well as re-order the sequence for the concatenation.
Convert a field to Currency value
This will be required if your source value is of a monetary nature (e.g. price, original_price). Select the currency from the dropdown on the left to apply the transformation.

Multi-locale
If your catalog is a multi-locale catalog, and you have products in their locale currency, then you can indicate them by either using the multiple file source URL fetch method or the API method. Other methods will only define one currency for all the products.
Convert a field to Date value
This can be used to apply date-specific filters when you create Apps.

First, choose the time zone that applies to your date-time.
Then, choose the applicable date-time format that matches your source format. For example:
- 2021-01-31 > select yyyy-MM-dd
- 01/31/2021 > select MM/dd/yyyy
- 1590000000000 > select Unix epoch milliseconds

Custom date format
If none of the predefined formats match yours, choose the 'custom' option in the dropdown to manually enter a custom date-time format. For example:
- yyyy-MM-dd (2009-12-31)
- dd-MM-YYYY (31-12-2009)
- yyyy-MM-dd HH:mm:ss (2009-12-31 23:59:59)
- HH:mm:ss.SSS (23:59.59.999)
- yyyy-MM-dd HH:mm:ss.SSS (2009-12-31 23:59:59.999)
- yyyy-MM-dd HH:mm:ss.SSS Z (2009-12-31 23:59:59.999 +0100)
Here are the most common patterns:
y: Year (2018, 18)M: Month in a year (August, Aug, 08)d: Day in a month (1, 5, 25)E: Name of a day in a week (Monday, Saturday)a: Ante meridiem/Post meridiem marker (AM, PM)H: Hour in a 24h style (1, 7, 14, 21)h: Hour in a 12h style (1, 5, 12)m: Minute in an hour (1, 25, 54)s: Second in a minute (1, 25, 54)
Other less common patterns:
G: Era designator (AD, CE)Y: Week year (2018, 18)w: Week in a year (25, 53)W: Week in a month (2)D: Day in a year (254)F: Day of week in a month (3)E: Day name in a week (Monday, Mon)u: Day number of a week (1, 4)k: Hour in a day (17)K: Hour in a day in AM/PM (5)S: Millisecond (1245)z: General Time Zone (Pacific Standard Time;PST;GMT-8:00)Z: RFC 822 Time Zone (-0800)X: ISO 8601 Time Zone (-08, -0800, -8:00)
Convert a field to Long value
Convert your value to a Long data type if your source value represents an integer value (e.g. inventory quantity, number of reviews, etc).

Convert a field to Double value
Convert your value to a Double data type if your source value is a number that contains decimal points (e.g. ratings, average review score, etc).

Transformation fallback
If any of the transformation logic cannot be applied correctly to the source value, the transformed value will be NULL (Rezolve use NULL to represent empty value in our data storage).
For example, if the source value itself is empty, the transformed value will be NULL. If you are trying to convert a string such as "red" into a Long value, the the transformed value will be NULL.
We would love to hear from you!Leave us a comment below if you would like us to support any other data transformation options.
Updated 10 months ago