How Supply Lens recognises things
Lesson 2 of 24 7 min read
Identifiers are the codes that link the values on a Document to your records. Learn how cross-referencing uses them, and what you see on a Document when it works.
Shopify calls your coffee HT-HOUSE-250. Greenleaf Wholesale calls it GL-44871. Its
barcode is a 13-digit GTIN. They are all the same bag of coffee. This lesson explains how
Supply Lens knows that, using identifiers, and what happens step by step when a Document
arrives.
Identifiers: one record, many codes
An identifier is a code, ID, number or reference that a system or trading partner uses to point at one of your records. Each identifier has two parts:
- a type, such as SKU, GTIN-13, Buyer Product Code, GLN or Unleashed Customer Code; and
- a value, such as
HT-HOUSE-250or5012345000017.
A single record can hold many identifiers. Your House Blend Product might carry its SKU, two barcodes and the code Greenleaf uses for it. A Party might carry a GLN, a VAT number and the customer code it has in Unleashed.
What happens when a Document arrives
Supply Lens works through the same steps for every Document that carries lines and parties:
- Cross-reference. Supply Lens takes each value on the Document (a SKU on a line, a GLN for the buyer, a warehouse code) and looks for the record that carries a matching identifier. A SKU becomes a Product; a GLN becomes a Party.
- Enrichment. Supply Lens fills in what the sender left out, using your defaults. For example, if a line has no unit of measure, enrichment works out which unit it should be.
- Repeat if needed. Enrichment can reveal something new to match (say, it fills in the customer from the ship-to address), so the two steps loop until nothing more changes.
- Send. Once everything is matched, your Mappings run and the data goes to its destination in the format that system expects.
The same identifiers work in the other direction too. When Supply Lens sends an order into Unleashed, it looks up the identifier Unleashed needs for each Product and Party, and puts that value in the outgoing data.
Seeing the result on a Document
When you open a Document, a green tick appears beside each party and each line that was matched to one of your records. Click the tick to go straight to the record it matched. If a ship-to address matched both a Party and a Location, you can choose which to open.
A missing tick is your first clue that something on the Document is not recognised.
Greenleaf's first order
Greenleaf Wholesale sends its first EDI order to Hilltop. It names the buyer by GLN, and the line by barcode and Greenleaf's own product code. Here is what Supply Lens needs to find:
| On the order | Identifier type | Must match |
|---|---|---|
Buyer 5012345000017 | GLN | The Greenleaf Wholesale Party |
Line GL-44871 | Buyer Product Code | The House Blend 250g Product |
Quantity 3, no unit given | (none) | A unit, worked out during enrichment |
If Priya has set those identifiers up, all three match, the ticks go green and the order flows into Unleashed with Hilltop's own SKU and Greenleaf's Unleashed customer code. If she hasn't, the order stops and tells her exactly which value it couldn't place.
Why Supply Lens won't guess
Sometimes two different records claim the same code with the same scope, for example two
Products that both carry the SKU WIDGET. On an incoming Document, Supply Lens treats that
as an ambiguous match: it reports an error naming both records rather than picking one.
That is the safe choice. You will learn how to avoid ambiguity, and how Supply Lens chooses
between identifiers when several legitimately apply, in the Products module.
Recap
- An identifier is a type plus a value, such as SKU
HT-HOUSE-250or GLN5012345000017. - One record can carry many identifiers, one for each system or partner that refers to it.
- Cross-referencing matches the values on a Document to your records; enrichment fills gaps using your defaults.
- The same identifiers are used outbound, to send each system the code it expects.
- A green tick on a Document means that party or line was matched; a missing tick is where to look first.
Your progress is saved in this browser. Create a free account to keep it everywhere, take quizzes and earn certificates.