web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Shopify Connector: Separating Line Discount and Order Discount for BOM Items in Business Central

(0) ShareShare
ReportReport
Posted on by 67

Hi Everyone,

I am working on a customization involving the standard Shopify Connector in Dynamics 365 Business Central and would like to know if anyone has encountered a similar scenario or if there is a standard approach that I might be overlooking.

Environment


  • Business Central: 28.2

  • Standard Microsoft Shopify Connector

  • Sales Orders are automatically posted after synchronization.

  • Some products are BOM/Assembly items that are exploded into child Sales Lines before posting.

  •  

Current Behavior

When a Shopify order is synchronized, both the Shopify line-level discount and the Shopify order-level (cart) discount are combined and imported as a Line Discount on the Sales Line.

This appears to be the standard behavior of the Shopify connector.

The Problem

The issue occurs when a BOM item is exploded.

For example:


  • Kit Item: $100

  • Shopify Line Discount: $10

  • Shopify Order Discount: $5

  •  

The connector imports the combined discount ($15) as a Sales Line Discount.

When the BOM is exploded:


  • The parent line is replaced by child lines.

  • The original line discount information is lost.

  • The resulting document total no longer matches the amount already paid by the customer in Shopify.

  •  

Proposed Solution

Our client has requested that the discounts be separated as follows:


  • Shopify Item/Line Discount → Business Central Line Discount

  • Shopify Order/Cart Discount → Business Central Invoice Discount

  •  

To achieve this, my approach is:


  1. Read the original Shopify order data stored in Shpfy Data Capture.

  2. Extract the actual line-level discount and order-level discount separately.

  3. Update the Sales Lines with only the line discount.

  4. Allow the BOM explosion to occur.

  5. Calculate and apply the Invoice Discount on the Sales Order.

  6. Validate that the final Sales Order total matches the Shopify payment before automatic posting.

  7.  

My Questions


  1. Is there any standard functionality in the Microsoft Shopify Connector that already separates line discounts and order discounts, or is parsing the stored Shopify JSON the only practical approach?

  2. Has anyone implemented a similar customization for BOM/Assembly items where preserving the distinction between line discounts and order discounts was required?

  3. Are there any known pitfalls or upgrade concerns with modifying discounts after Shopify synchronization but before the Sales Order is automatically posted?

  4.  

Any guidance or recommendations would be greatly appreciated.

Thank you!

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 677 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 521 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 306 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans