Walkthrough: Set up and use the Shopify Connector
This section demonstrates some typical scenarios and takes you through the steps to test or train users on the workflow of the integrated Business Central and the Shopify store.
Prerequisites
Shopify
You must have:
- A Shopify account
- A Shopify online store
Learn more about how to create Shopify trials and recommended settings at Create and Set Up a Shopify Account.
Business Central
You must have a Business Central account.
For example, you can create a demo account or start a trial. Learn more at Prepare Demonstration Environments of Dynamics 365 Business Central and Sign up for the trial.
Connect Business Central to the Shopify shop
In Business Central, do the following:
- Select the icon, enter Shopify Shops, and then select the related link.
- Select the New action.
- In the Code field, enter DEMO1.
- In the Shopify URL field, enter the URL for the online shop that you want to connect to.
- Activate the Enabled toggle and then review and accept the terms and conditions.
To configure the Shopify shop, follow these steps:
- Turn off the Allow Background Syncs toggle.
- Select To Shopify in the Sync Item field.
- Select To Shopify in the Sync Item Images field.
- Turn on the Sync Item Attributes toggle.
- Turn on the Inventory Tracked toggle.
- Select Deny in the Default Inventory Policy field.
- Turn on the Auto Create Unknown Customers toggle.
- Fill in the Customer/Company Template Code field with the appropriate template.
- Fill in the Shipping Cost Account, the Tip Account with the revenue account. For example, in the US, use 40210.
- Turn on the Auto Create Orders toggle.
- Turn off the Auto Release Sales Orders toggle.
Configure location mapping:
- Select the Locations action to open Shopify Shop Locations.
- Select the Get Shopify Locations action to import all locations defined in the Shopify. Select entry with Is Primary toggle is selected.
- In the Location Filter, enter ''|EAST|MAIN.
- To enable an inventory sync for a selected Shopify location, in the Stock Calculation field, select Projected Available Balance at Today.
Walkthrough: Start selling products online
Scenario
Let's say that you want to try Shopify as an online store without spending much time on setup, especially because you already maintain your items in Business Central properly. After you launch your Shopify online store, you immediately get new customers who are happy with your shop and their buying experience. So, they decide to leave tips at checkout.
Steps
In Business Central, follow these steps:
- Select the icon, enter Shopify Products, and select the related link.
- Select Add Items.
- In the Shop Code field, enter DEMO1.
- In the Item Category Code field, set the filter CHAIR.
- Turn on the Sync Product Images toggle.
- Turn on the Sync Inventory toggle.
- Select OK and wait until initial synchronization of items, prices, images, and inventory is completed.
In the Shopify online store:
Tip
Open Shopify admin by navigating to the URL specified in the URL field of the Shopify Shop Card page. Select the eye icon next to the Online Store sales channel, located in the sidebar of Shopify admin.
Open the product catalog. Notice:
- Product titles, images, and prices.
- Availability indicator (sold out for out-of-stock products).
Choose any product that can be sold. For example, the BERLIN Swivel Chair, yellow. Notice that the description contains item attributes.
Select Buy it now and proceed to checkout.
- In the Email or mobile phone number field, enter cl@contoso.com (or an email address where you want to receive order and shipping confirmations).
- In the First name and Last name fields, enter Claudia and Lawson.
- Enter the local address.
- Select the Save this information for next time checkbox.
- Keep Standard as the shipping method.
- In the Credit Card number field, enter 1 if you use (for testing) Bogus Gateway, or enter 5555 5555 5555 4444 if you use Shopify payments in test mode.
- Fill in the Name on card field.
- In the Expiration date field, enter the current month/year.
- In the Security code, enter 111.
- Optional: Select 10% tip.
- Select Pay now.
In Business Central, do the next steps:
- Select the icon, enter Shopify Orders, and then select the related link.
- Select the Sync Orders From Shopify action.
- Select OK.
The imported order is ready for processing.
- Select the imported order to open the Shopify Order window.
- Notice that the new customer and sales orders are created.
- Explore the Risks and Shipping Cost actions.
- Select Sales Order to open the Sales Order window. Sales order is a demand that, if necessary, can be covered with assembly, production, or by purchase with the help of the planning engine. It also supports various warehouse handling processes with complete separation of duties.
- In the Agent field, enter DHL. Reopen order if needed by choosing Reopen action.
- In the Package Tracking No., enter 123456789.
- Select Post, keep the Ship and Invoice option, and then select OK.
Now physical and financial data is registered in Business Central. It’s time to notify Shopify about the changes.
- Select the icon, enter Sync Shipments to Shopify, and select the related link.
- Select OK.
In Shopify Admin, notice that the order is now marked as Fulfilled. You can also review shipment details and see the tracking URL there. If you run Sync Orders From Shopify again, the order will be archived in both systems.
Walkthrough: Add your customers to your new online store
Scenario
After a successful quick launch of your new online store, you want your current customers to visit it and start placing orders. Depending on your Shopify plan and process you can try B2B and DTC flows.
DTC Steps
In Business Central, do the following:
- Select the icon, enter Shopify Customers, and select the related link.
- Select Add Customers.
- In the Shop Code field, enter DEMO1.
- In the No. field, set the filter 20000.
- Select OK and wait until initial synchronization of customers is completed.
In Shopify Admin, notice that the customer was imported. Open the customers and notice that the first and last names of the customer are coming from the Contact Name field of the Customer Card. The company name can be found in the default address, linked to the customer. If you use Classic customer accounts, then you can select Send account invite to invite the customer. With New customer accounts, a password isn't required for customers to sign in. Instead, Shopify lets your customers sign in using a one-time, 6-digit verification code sent by email.
B2B steps
Note
This feature is available from 2024 release wave 1, and requires a Shopify Plus subscription. To get access to B2B features, remember to request an access token. For more information, see Request the access token.
In Business Central, do the following:
- Select the icon, enter Shopify Companies, and select the related link.
- Select Add Company.
- In the Shop Code field, enter DEMO1.
- Set the filter 30000 on the No. field.
- Select OK and wait until initial synchronization of customers is completed.
In Shopify Admin, notice that both the company and the customer were imported. Open the customers and notice the Company FactBox has links to the company, location, and assigned permissions. To invite the customer, select [...] in the Company FactBox, and then select Send B2B access email.
Walkthrough: Fine-tuning of item management
Scenario
You'd like to add more flexibility and control to your processes around items management. You want to improve product descriptions and would like to add more review steps before products become available to all customers.
Steps
In Business Central, do the following:
Prepare data.
Select the icon, enter Customer Price Group, and select the related link.
Add a new price group. In the Code field, enter SHOPIFY.
Close the Customer Price Group window.
Select the icon, enter Items, and select the related link.
Select item 1896-S, Athens Desk, and then follow these steps:
Select the Variants action and then add two variants: PREMIUM, Athens Desk, Premium edition and ESSENTIAL, Athens Desk, Essential edition.
Select the Marketing Text action and use the Draft with Copilot to get creative and engaging text. If marketing text suggestion isn't enabled, just enter: 'Simple stylish design blends with any ensemble. Available in two editions..
Select the Sales Prices action and add new prices as shown in the following table:
Line Sales Type Sales Code Type Code Variant Code
(add the field via personalization)Unit Price 1 Customer Price Group SHOPIFY Item 1896-S ESSENTIAL 700 2 Customer Price Group SHOPIFY Item 1896-S PREMIUM 1000 Select the Sales Discounts action and add a new discount:
- Sales Type Customer Disc. Group
- Sales Code RETAIL
- Type Item
- Code 1896-S
- Unit of Measure Code PCS
- Line Discount % 10
Select the Item References action and add the following lines:
Line | Reference Type | Reference No. | Variant Code |
---|---|---|---|
1 | Barcode | 77777777 | ESSENTIAL |
2 | Barcode | 11111111 | PREMIUM |
- Select the item 1920-S, ANTWERP Conference Table and then follow these steps:
- Select Adjust Inventory and in the New Inventory field, enter 100 for the locations EAST and WEST.
- Select OK.
Adjust the synchronization settings.
- Select the icon, enter Shopify Shops, and select the related link.
- Select the DEMO1 shop for which you want to synchronize items to open the Shopify Shop Card page.
- Enable the Sync Marketing Text field.
- In the SKU Mapping field, select Item No.+ Variant Code.
- In the Default Inventory Policy field, select Continue.
- In the Status for Created Products field, select Draft.
- In the Action for Removed Product field, select Status to Archived.
- In the Customer Price Group field, select SHOPIFY.
- In the Customer Discount Group field, select RETAIL.
Run the synchronization.
- Select the icon, enter Shopify Shops, and select the related link.
- Select the DEMO1 shop for which you want to synchronize items to open the Shopify Shop Card page.
- Select Products to open the Shopify Products page.
- Select the Add Items action.
- Set the filter TABLE|DESK on the Item Category Code field.
- Turn on the Sync Product Images toggle.
- Turn on the Sync Inventory toggle.
- Select OK and wait until initial synchronization of items, prices, images, and inventory is completed.
Products are added. Notice that the status is set to Draft, and therefore items aren't visible in the Shopify online store.
- Select the line with item 1920-S, ANTWERP Conference Table. In the SEO Title, enter Rectangular meeting table Antwerp, 10 seats, black.
- In the Status field, select Active.
- Select the line with item 1906-S, ATHENS, Mobile Pedestal and then select Delete.
In Shopify Admin, notice that all products have different statuses.
- ANTWERP Conference Table is Active because we changed its status on the Shopify Product page.
- ATHENS Desk is Draft because we configured the default status for all added products to be Draft.
- ATHENS Mobile Pedestal is Archived because we configured the shop to automatically assign status Archived for deleted products.
Notice that inventory for ANTWERP Conference Table is 100, because we configured the system to use inventory only from two locations, MAIN and EAST. Inventory on another location (WEST) is ignored.
- Open ANTWERP Conference Table, notice the Custom Type, Vendor, Weight, and Cost per item fields, and the Search engine listing preview section.
- Open Athens Desk, scroll down to the Variants section, and notice how SKU is populated.
- To review barcode and prices, select Edit.
- Change the status of Athens Desk to Active, and select Preview.
In the Shopify online store, open the product catalog and find the ATHENS Desk product. Notice that different options are available. For different options, prices are different. Pay attention to discount information.
Additional steps for B2B
Note
This feature is available from 2024 release wave 1, and requires a Shopify Plus subscription. To get access to B2B features, remember to request an access token. For more information, see Request the access token.
You can configure connector to create and assign catalog for exported Companies automatically. The steps below are useful if you want more precise control of what is available for B2B customers.
In Shopify Admin, create and assign a catalog.
- Select Products and then Catalogs in the sidebar of Shopify admin.
- Create a catalog for specific products. Give it the title 'B2B'.
- Choose Manage, and then Manage products and pricing.
- Select the Excluded filter, find ATHENS Desk, and choose Include in catalog.
- Select Customers, and then Companies in the sidebar of Shopify admin.
- Select School of Fine Art, choose [...], and then Add catalogs and add the B2B catalog created earlier.
In Business Central, do the following:
Prepare data.
Select the icon, enter Items, and select the related link.
Select item 1896-S, Athens Desk, and then follow these steps:
Select the Sales Discounts action and add a new discount:
- Sales Type Customer Disc. Group
- Sales Code LARGE ACC
- Type Item
- Code 1896-S
- Unit of Measure Code PCS
- Line Discount % 25
Select the icon, enter Shopify Catalogs, and select the related link.
Select Get Catalogs.
In the Shop Code field, enter DEMO1.
Select the entry with the B2B catalog for which you want to synchronize prices.
Enable the Sync Prices toggle.
In the Customer Price Group field, select SHOPIFY.
In the Customer Discount Group field, select LARGE ACC.
Choose Sync Prices and wait until synchronization of prices is completed.
In Shopify Admin, explore prices for the B2B catalog.
In the Shopify online store, open the product catalog and find the ATHENS Desk product. Note the price and discount information.
Walkthrough: Check out and order synchronization for Individual buyer and Company representative
This is a continuation of Walkthrough: Start selling products online. You can also try with your own data, for example, using your Shopify store or sandbox.
Individual buyer
- In the Shopify online store. Choose Account icon. Enter email you have access to.
- Sign in using a one-time 6-digit verification code sent by email you entered.
- Explore product catalog, you should be able to see all products with retail prices.
- Select Essential variant and select Buy it now and proceed to checkout.
- Fill in the First name and Last name fields.
- Enter the local address.
- Keep Standard as the shipping method.
- In the Credit Card Number field, enter 1 if you use (for testing) Bogus Gateway, or enter 5555 5555 5555 4444 if you use Shopify payments in test mode.
- In the Expiration date field, enter the current month/year.
- In the Security code, enter 111.
- Fill in the Name on card field.
- Select Pay now.
Company representative
Note
This feature is available from 2024 release wave 1, and requires a Shopify Plus subscription. To get access to B2B features, remember to request an access token. For more information, see Request the access token.
- In Shopify Admin.
- Select Customers and then Companies in the sidebar of Shopify admin.
- Open School of Fine Art entry.
- Choose [...] in the School of Fine Art FactBox, then Edit payment terms, and then select Due on fulfillment.
- Choose [...] in the Customers FactBox, then Add customer, and then add the one with the email you used to sign in to the store earlier.
- In the Shopify online store. Choose Account icon. Enter email you have access to.
- Sign in using a one-time 6-digit verification code sent by email you entered.
- Explore product catalog, you should be able to see only product added to the B2B catalog with retail special prices.
- Select the essential variant, select Buy it now, and proceed to checkout.
- Notice that account, Ship to, and payment method are populated.
- Fill in the PO Number field with PO-12345.
- Select Submit order.
In Business Central, do the next steps:
- Select the icon, enter Shopify Orders, and then select the related link.
- Select the Sync Orders From Shopify action.
- Select OK.
The imported order is ready for processing.
- Select the imported order to open the Shopify Order page.
- Notice that both the orders were submitted by same person, they're linked to two different customers.
- In the order submitted on behalf of company, you can see a value in PO Number field, which is also transferred to the External Document No. field of the created sales document.
- Because we configured the B2B company to handle payments outside of Shopify, the Financial Status is set to Pending. After you receive the payment, select the Mark as Paid action. The financial status updates in Shopify.
Walkthrough: Import items, customers, companies from Shopify
Scenario
You already have a successful online store and would like to start using Business Central as business management software. You would like to import as much data from Shopify as possible.
Steps
This is a continuation of Walkthrough: Start selling products online and Walkthrough: Add your customers to your new online store. You can also try with your own data, for example, using your Shopify store or sandbox.
In Business Central, follow the steps listed next.
Prepare data
- Switch to a free 30-day trial without sample data. For more information, see Add your own data to an empty trial.
- Select the icon, enter Shopify Shops, and then select the related link.
- Select New.
- In the Code field, enter DEMO2.
- In the Shopify URL field, enter the URL to the online shop that you want to connect to.
- Turn on the Enabled toggle, and then review and accept the terms and conditions.
Configure the Shopify shop as described here:
- Turn off the Allow Background Syncs toggle.
- In the Sync Item field, select From Shopify.
- Turn on the Auto Create Unknown Items toggle.
- Fill in the Item Template Code field with the appropriate template.
- In the Sync Item Images field, select From Shopify.
- In the SKU Mapping field, select Item No.+ Variant Code.
- In Customer Import from Shopify field, select All Customers.
- Turn on the Auto Create Unknown Customers toggle.
- Fill in the Customer/Company Template Code field with the appropriate template.
- In the Company Import from Shopify field, select All Customers.
- Turn on the Auto Create Unknown Company toggle.
Run the synchronization
- Select the icon, enter Shopify Shops, and select the related link.
- Select the DEMO2 shop for which you want to synchronize data to open the Shopify Shop Card page.
- Select Sync Products.
- Select Sync Product Images.
- Select Sync Customers.
- Select Sync Companies
Results
- Shopify Products are imported. To verify, select the icon, enter Shopify Products, and select the related link.
- Items with images are created. To verify, select the icon, enter Item, and select the related link.
- Shopify customers are imported. To verify, select the icon, enter Shopify Customers, and select the related link.
- Shopify companies are imported. To verify, select the icon, enter Shopify Companies, and select the related link.
- Customers are created. To verify, select the icon, enter Customers, and select the related link.