# Sync SAP sales order tasks between Microsoft SQL Server and Asana: n8n workflow

> Started by a clock. It calls services over plain HTTP rather than through connectors. 29 steps, 3 branches: large, and worth reading before you trust it...

Source: https://millionrounds.com/workflow/sync-sap-sales-order-tasks-between-microsoft-sql-server-and- (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [E-commerce](https://millionrounds.com/workflows?category=E-commerce#library)

# Sync SAP sales order tasks between Microsoft SQL Server and Asana

Started by a clock. It calls services over plain HTTP rather than through connectors. 29 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsync-sap-sales-order-tasks-between-microsoft-sql-server-and-)

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

**3** Branches: places the flow splits

**0** Loops or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 1 Logic 13 Service 15

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

- 1 **Every 10 Minutes** Schedule trigger *Starts it*
- 2 **Query Unsynced Sales Orders** Microsoft Sql *Service*
- 3 **Any Sales Orders to Sync?** Filter *Logic*
- 4 **Mark SO as Processing** Microsoft Sql *Service*
- 5 **Pass SO Context** Code *Logic*
- 6 **Look Up Asana Project GID from SQL** Microsoft Sql *Service*
- 7 **Merge SO + Project GID** Code *Logic*
- 8 **Asana Project Exists?** If *Logic*
- 9 **Get Project Sections** Http Request *Service*
- 10 **SQL, Mark SO Waiting for Project** Microsoft Sql *Service*
- 11 **Find Target Section by DocType** Code *Logic*
- 12 **Handle SO Sync Error** Code *Logic*
- 13 **Route by ChangeType** Switch *Logic*
- 14 **SQL, Mark SO Failed** Microsoft Sql *Service*
- 15 **Search Existing Tasks in Section** Http Request *Service*
- 16 **Build UPDATE Payload** Code *Logic*
- 17 **Delete Asana Task** Http Request *Service*
- 18 **Check if Task Already Exists** Code *Logic*
- 19 **Update Existing Asana Task** Http Request *Service*
- 20 **SQL, Mark DELETE Completed** Microsoft Sql *Service*
- 21 **Task Already Exists?** If *Logic*
- 22 **SQL, Mark UPDATE Completed** Microsoft Sql *Service*
- 23 **Build Payload for Duplicate Task Update** Code *Logic*
- 24 **Build Task Custom Fields Payload** Code *Logic*
- 25 **Update Duplicate Task** Http Request *Service*
- 26 **Create Asana Task** Http Request *Service*
- 27 **SQL, Mark Duplicate Update Completed** Microsoft Sql *Service*
- 28 **Extract Created Task GID** Code *Logic*
- 29 **SQL, Mark INSERT Completed** Microsoft Sql *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 29, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Nothing by connector; it calls services over plain HTTP
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n 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 29 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 29 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%2Fsync-sap-sales-order-tasks-between-microsoft-sql-server-and-)
- **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.

## Workflows like it

Also e-commerce, with the same services where possible, closest in size first.

- [**Complete WooCommerce to Odoo integration: Sync orders, products** 29 steps](https://millionrounds.com/workflow/complete-woocommerce-to-odoo-integration-sync-orders-product)
- [**Share Shopify New Products Across All Social Media Platforms** 29 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/share-shopify-new-products-across-all-social-media-platforms)
- [**Binance spot trader - limit & market orders** 30 steps](https://millionrounds.com/workflow/binance-spot-trader-limit-and-market-orders)
- [**Review and approve Google Sheets orders by email and notify** 28 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/review-and-approve-google-sheets-orders-by-email-and-notify)
- [**Generate UGC promo videos with OpenAI and Sora 2** 28 steps · calls a model · Telegram](https://millionrounds.com/workflow/generate-ugc-promo-videos-with-openai-and-sora-2)
- [**AI-powered WooCommerce Support-Agent with OpenAI** 31 steps · calls a model · WooCommerce](https://millionrounds.com/workflow/ai-powered-woocommerce-support-agent-with-openai)
