# Shopify orders to D365 Business Central sales orders / sales: n8n workflow

> Started by a clock, and works across Shopify. 31 steps, 4 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Source: https://millionrounds.com/workflow/shopify-orders-to-d365-business-central-sales-orders-sales (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Money admin](https://millionrounds.com/workflows?category=Money+admin#library)

# Shopify orders to D365 Business Central sales orders / sales

Started by a clock, and works across Shopify. 31 steps, 4 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fshopify-orders-to-d365-business-central-sales-orders-sales)

**31 steps** Large: read it before trusting it with anything live

**4** Branches: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 1 Logic 18 Service 12

The steps in the order they run, from what starts it.

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **D365 BC Environment Settings** Set *Logic*
- 3 **Shopify** Shopify *Service*
- 4 **Filter** Filter *Logic*
- 5 **GetFufillmentOrders** Http Request *Service*
- 6 **SelectFields** Set *Logic*
- 7 **orderPreprocessing** Code *Logic*
- 8 **Loop Over Items** Split In Batches *Logic*
- 9 **Set Business Central Customer Id** Set *Logic*
- 10 **Lookup Customers** Http Request *Service*
- 11 **POS?** If *Logic*
- 12 **New Customer?** If *Logic*
- 13 **Lookup Sales Invoice** Http Request *Service*
- 14 **Lookup Sales Order** Http Request *Service*
- 15 **Create Customer** Http Request *Service*
- 16 **New Invoice?** If *Logic*
- 17 **New SO?** If *Logic*
- 18 **Sales Invoice** Set *Logic*
- 19 **Sales Order Mapping** Set *Logic*
- 20 **Create Sales Invoice** Http Request *Service*
- 21 **Create Sales Order** Http Request *Service*
- 22 **Set Lines Invoice** Set *Logic*
- 23 **Set Lines SO** Set *Logic*
- 24 **Split Out Invoice** Split Out *Logic*
- 25 **Split Out** Split Out *Logic*
- 26 **Create Invoice Lines** Http Request *Service*
- 27 **Create Order Lines** Http Request *Service*
- 28 **End1** No Op *Logic*
- 29 **DELETE Sales Invoice** Http Request *Service*
- 30 **End** No Op *Logic*
- 31 **DELETE Sales Order** Http Request *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 31, with 4 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Shopify
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Shopify account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 31 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 31 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fshopify-orders-to-d365-business-central-sales-orders-sales)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Shopify](https://millionrounds.com/workflows?service=Shopify#library)

## Workflows like it

Also money admin, with the same services where possible, closest in size first.

- [**Consolidate Stripe, PayPal, Shopify and bank revenue** 21 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/consolidate-stripe-paypal-shopify-and-bank-revenue)
- [**Automated tax filing with OpenAI** 18 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/automated-tax-filing-with-openai)
