Skip to main content

Field Mapping Reference

Items export – fields mapping

If in Business central user have settings for export Items from system to Shopify, system will use following mapping of fields:

Business central, table ItemShopify
Descriptiontitle
Descriptionbody-html
No.handle
Name of Vendorvendor
Item Category Codetags
Unit Priceprice
No.sku
Net Weight * 1000grams
Net Weightweight
kgweight-unit
continueinventory-policy
Item Reference - Reference No.barcode
manualfulfillment-service
shopifyinventory-management

Notes:

  • System exports only Items (not Item Variants)

  • Price is taken from WEB Customer Price Group price list if available, otherwise from Item Unit Price

  • If Item has no Vendor, Company Name is used as vendor

  • Only items with Item Category Code assigned will be exported

  • Item Category must be mapped to Shopify Collection

Items import – fields mapping

If in Business Central user has settings for import Items from Shopify to Business Central, system will use following mapping of fields:

Business central, table ItemShopify
No.sku (product variant)
Descriptiontitle (product)
Variant Codesku suffix after "_" (e.g., SKU "ITEM_RED" → Variant Code "RED")
Item Category CodeFirst collection name (if Check Collection enabled)
Unit Priceprice
Vendor No.vendor (searches for vendor by name, creates if not found)
Item Reference - Reference No.barcode

Important Notes:

  • Only product variants with SKU defined will be imported

  • System uses Item Template Code from Shopify Setup for default values

  • If item creation fails, order line will use Default Item No. from Shopify Setup

  • System checks if Item No. already exists before creating new item

Customer export – fields mapping

If in Business central user have settings for export customers from system to Shopify, system will use following mapping of fields:

Business central, table CustomerShopify
Name (first part before Space)first_name
Name (last part after Space)last_name
E-Mailemail
Phone No.phone
default_address
Addressaddress1
Address 2address2
Citycity
Countyprovince
Country → Namecountry_name
Country/Region Codecountry_code
Post Codezip

Orders import – fields mapping

When Business Central is importing orders from Shopify, system will use following mapping of fields:

Business central, table Sales Header and Sales LineShopify
Sales Header
Order Datecreated_at
External Document No.name (e.g., "#1001")
JML Shopify Document IDid (Shopify Order GID)
JML Shopifytrue
billing_address
Bill-to Namename
Bill-to Addressaddress1 + address2
Bill-to Citycity
Bill-to Post Codezip
Bill-to Country/Region Codecountry_code
shipping_address
Sell-to Customer Namename
Sell-to Addressaddress1 + address2
Sell-to Citycity
Sell-to Post Codezip
Ship-to Countyprovince
Sell-to Country/Region Codecountry_code
Ship-to Namefirst_name + last_name + company
Ship-to Countyprovince
Sales Line
TypeItem
No.--search for Item No. with logic below
Quantityquantity
Unit Priceprice
Line Discount Amounttotal_discount

Note – when system is importing orders, it checks whether this Order already exists in system by filtering existing Sales Orders (and Posted Sales Invoices) with JML Shopify Document ID = Shopify order ID. For backward compatibility, also checks Your Reference field.

Search for Item in Shopify order

When system is importing order from Shopify, it searches for item with following logic:

  1. System takes value from sku field and tries to find Item with equivalent No.

  2. System searches for value from sku field in Item Reference table. If not found then...

  3. System creates new Item using Item Template Code from Shopify Setup. If creation fails then...

  4. System uses Default Item No. from Shopify Setup as fallback.

Fulfillments import – fields mapping

When Business Central is importing fulfillments from Shopify, system will use following mapping of fields:

Business central, table Sales Header and Sales LineShopify
Sales Invoice Header
Order Datefulfillment.created_at
Posting Datefulfillment.created_at
External Document No.order.name (e.g., "#1001")
JML Shopify Document IDhttp://fulfillment.id (Shopify Fulfillment GID)
JML Shopifytrue
Shipping Agent Codefulfillment.tracking_company
Package Tracking No.fulfillment.tracking_number
order.billing_address
Bill-to Namename
Bill-to Addressaddress1 + address2
Bill-to Citycity
Bill-to Post Codezip
Bill-to Country/Region Codecountry_code
order.shipping_address
Sell-to Customer Namename
Sell-to Addressaddress1 + address2
Sell-to Citycity
Sell-to Post Codezip
Ship-to Countyprovince
Sell-to Country/Region Codecountry_code
Ship-to Namefirst_name + last_name + company
Sales Invoice Line
TypeItem
No.--search for Item No. with same logic as Orders import
Quantityfulfillment_line_item.quantity
Unit Priceline_item.price
Line Discount Amountline_item.total_discount

Note – when system is importing fulfillments, it checks whether this Fulfillment already exists in system by filtering existing Sales Invoices and Posted Sales Invoices with JML Shopify Document ID = Shopify fulfillment ID.

Posting – Sales Invoices must be manually reviewed and posted after import.