Map a Value by a Lookup List

How to replace an item ID with a name or full path from a lookup list in XML, JSON, or a table.

Map by lookup list is used when a product, row, or element stores an ID, while the readable name is stored in a separate lookup list in the same source.

Animation of value mapping by lookup list in Eofferix
Lookup mapping connects the current ID with the ID and name in the lookup list.

Typical example: a product has category_id = 12, and the category list has id = 12, parent_id = 3, name = Chairs. Eofferix can output Chairs or the full path Furniture > Chairs.

Where to Enable It

  • Open the settings of the result field, node, or column where the name or path should be written.
  • In Additional settings, enable Map by lookup list.
  • In tables, the lookup list can be on another sheet. In JSON and XML, choose paths to lookup-list fields inside the source document.

What to Insert

ModeUse whenResult
Lookup valueYou need to replace an ID with a name, code, or another lookup field.12 becomes Chairs.
Section pathYou need a section name or a full path built by parent_id.12 becomes Furniture > Chairs.

Settings

FieldWhat to select
Where the current item ID is storedThe product or row field that stores the ID. If empty, Eofferix uses the current configured field value.
Where to take the ID in the lookup listThe lookup-record field compared with the current item ID.
Where to take the value / nameThe lookup-record field to write into the result.
Build full pathUsed in Section path mode when the path from parent section to current section is needed.
Where to take the parent IDThe parent_id field in the same lookup record. Required only for full path.
Path separatorText between path levels, for example > or /.
Multiple valueEnable it if the current field contains several IDs separated by a character.

Example

ProductLookup listSettingResult
category_id = 12id = 12, name = ChairsLookup valueChairs
category_id = 12id = 12, parent_id = 3, name = Chairs; id = 3, name = FurnitureSection path + full pathFurniture > Chairs
category_ids = 12;15Categories with IDs 12 and 15Multiple value, separator ;Chairs;Tables

If No Match Is Found

If the ID is not found or the lookup list is not fully configured, Eofferix keeps the source value. This prevents data loss when a supplier sends an incomplete lookup list.

Checks

  • The current item ID and lookup-list ID must use the same format: for example both 12, not 12 and cat-12.
  • ID, parent_id, and name fields must belong to the same lookup record.
  • For full path, set the parent ID field.
  • For several IDs, enable Multiple value and check the separator.
  • This setting is not a consolidated-catalog value dictionary. It reads a lookup list from the source file or table.