Skip to content
Data Galactic

One view of stock and margin across stores, online and warehouses

A multi-channel retailer needed stock and margin figures that matched across point of sale, e-commerce, warehouse and Dynamics 365, updated through the trading day.

Type
Illustrative scenario, not a specific client engagement
Industry
Retail and Distribution
Technology practices
MicrosoftOpen Source

At a glance

  1. Situation

    A retailer ran finance and supply chain on Microsoft Dynamics 365, with separate point-of-sale, e-commerce and warehouse management systems.

  2. Approach

    Model stock movements as events · Connect Dynamics 365 and the channels · Agree one margin definition · Monitor the flows end to end

  3. Solution

    Apache Kafka carries stock and sales events from all channels, Azure Integration Services connects them to Microsoft Dynamics 365, and a shared data model on PostgreSQL feeds Power BI for intraday stock and margin reporting.

  4. Expected outcome

    Online availability reflects store and warehouse movements during the day rather than the night before.

The situation

A retailer ran finance and supply chain on Microsoft Dynamics 365, with separate point-of-sale, e-commerce and warehouse management systems. Stock positions were exchanged in overnight batches, so online availability was often wrong by mid-morning. Merchandisers built margin reports in spreadsheets from three different extracts.

Key challenges

  • Online availability lagged behind store and warehouse movements, leading to cancelled orders and lost sales.
  • Each channel calculated margin differently, so trading meetings started by debating whose numbers were right.
  • Batch interfaces failed silently, and problems surfaced only when customers complained.
  • Promotions and price changes had to reach every channel at the same time.

The approach

  • Model stock movements as events

    Sales, returns, receipts and transfers are published as events to Apache Kafka as they happen, giving one ordered stream that every system can consume.

  • Connect Dynamics 365 and the channels

    Azure Integration Services consumes the stream to update Dynamics 365, and publishes price and promotion changes back to point of sale and e-commerce through managed APIs.

  • Agree one margin definition

    Finance and merchandising agree a single definition of margin and its components, implemented once in a shared data model rather than in each spreadsheet.

  • Monitor the flows end to end

    Each event carries a business identifier, and monitoring alerts the support team when a channel stops consuming or a message fails, before stores or customers notice.

The solution

Apache Kafka carries stock and sales events from all channels, Azure Integration Services connects them to Microsoft Dynamics 365, and a shared data model on PostgreSQL feeds Power BI for intraday stock and margin reporting.

Expected outcomes

  • Online availability reflects store and warehouse movements during the day rather than the night before.
  • Trading meetings start from one agreed margin figure instead of reconciling spreadsheets.
  • Interface failures are spotted and fixed by support before they become customer complaints.
  • Price and promotion changes reach all channels together.

Facing a similar challenge?

Tell us what you are working on. A senior consultant will reply to arrange a first conversation about your priorities and options.