#9320 [Shopify] Import HS code and country of origin from Shopify
The Shopify connector now imports harmonized system codes and country of origin from Shopify variants when the sync setting is enabled, matching them to existing Business Central tariff numbers and countries during item creation and updates.
- 8files
- 4AL files
- 4objects
Pull request · merged into main (BC30) on 2026-07-16 by onbuyuka · 8 files (+436 -6), 4 AL · feature · tier official · reviewed (checked by Opus)
What changed
- HS codes are fetched from Shopify inventory items and applied to item tariff numbers during import
- Country ISO codes from Shopify are resolved to Business Central country/region codes
- Tariff numbers are only populated if they already exist in Business Central; separator-less Shopify codes are matched to dotted BC tariff numbers by digit comparison
- Updates preserve existing item values when Shopify data is unmapped or blank
- Feature is controlled by the existing Sync HS Code and Country setting and includes comprehensive test coverage
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 30104 “Shpfy Filter Mgt.”, Shopify: modified
- Codeunit 30171 “Shpfy Create Item”, Shopify: modified
- Codeunit 30188 “Shpfy Update Item”, Shopify: modified
- Codeunit 30189 “Shpfy Variant API”, Shopify: modified
Context
- Work items: AB#642046
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).