n8n flows
Backfill Missing Product SKUs
A manual maintenance flow that repairs shipment line items with a null Product SKU by re-fetching them from ShipHero.
A one-off maintenance utility. It repairs Shipment Line Items rows with a null product_sku by re-fetching the line item from ShipHero and linking it to the correct Product SKU record.
At a glance
- Status: Inactive, run by hand.
- Trigger: Manual only ("When clicking 'Test workflow'").
- Runs on:
Shipment Line Itemswhereproduct_sku is null. - Talks to: ShipHero GraphQL (per-brand token) and Supabase.
How it works
Get Line Items Without Productspulls allShipment Line Itemswhereproduct_sku is null.- It loops in batches;
Find Any Line Item Similaritiesfetches rows sharing the sameLine_Item_Id, and a filter keeps only single-match cases. - It resolves brand, then shipment, then order to obtain the order number and ShipHero token.
- It calls ShipHero GraphQL for the order and its shipments, splits out the line-item edges, and filters for the matching
legacy_id. Get The Product For Line Itemlooks upProduct SKUsby SKU, thenLink Line Item With A Productupdates the row'sproduct_sku.
Notes
- It deliberately skips line items with duplicate
Line_Item_Idvalues. Those need manual resolution. - No automated trigger; run it by hand after the shipment pulls leave gaps.
Related
- Missing Shipment Data Pull 2.0 (Backup): the live pull whose gaps this repairs.
- Missing Shipment Data Pull 2.0 (Reconciliation): the reconciliation copy.
- Missing Shipment Data Pull (v1): the original flow.
- SKU Information Handler: the shared SKU-resolution service.
- Features: Shipments, Inventory. See also Data flows.