Loading...

Multithreaded Execution Of The Calculate Sales Totals Batch Job in Dynamics 365 Finance and Operations

Multithreaded Execution Of The Calculate Sales Totals Batch Job in Dynamics 365 Finance and Operations

In this blog post, we will learn about a new feature released in D365 Finance and Operations Platform updates 10.0.29 i.e., Multithread capability in the "Calculate sales totals" batch.

image.png

Navigation path

Modules -> Sales and marketing -> Periodic tasks -> Calculate sales totals

Background

The business functionality of this batch job was introduced about 3 to 4 years ago in Dynamics 365 FO mainly to bridge the gap in data synchronization between Dynamics 365 Sales & Dynamics 365 Finance and Operations.

In the scenario of Dynamics 365 Cross-apps when Dual-write is installed and all sales orders are created and updated in Dynamics 365 FO and then changes are reflected in Dynamics 365 Customer Engagement app when Calculate Sales Totals is executed in Dynamics 365 FO (Not before).

Basically, the main purpose of this batch job is the calculation and synchronization of monetary value.

Why Multi-thread approach required?

In the real-life business world, the sales department often demands accurate sales order totals displayed, besides the sales order grid.

image.png Originally this batch job was designed to manage the performance issues by having two dedicated tables such as SalesOrderTotals and SalesOrderLineTotals. However, the average throughput of the total amount to be updated which includes invoiced and backorder lines was not great and impacted business users' downstream processes.

This feature helps improve system performance by enabling the system to use parallel processing when calculating sales totals in batches.

How does it work?

The feature adds a new "Number of threads" field to the "Calculate sales totals" dialog. If you choose to run the calculation in batch, you'll also be able to use this field to set the maximum number of threads. A value of zero or one uses a single thread, while values higher than 1 enable multithreading.

Note: This batch job does not change in Dynamics 365 FO Sales order header and Sales order line. The tables i.e., sales and line total tables populated to enable data sync to Dataverse (and CE).

image.png

Business benefit

A faster time to initiate downstream processes with correct sync data values across Dynamics 365 Apps.

I hope this article was a good read for you. Do share it with your friends and other peers.

Thank you for Reading - Let's Connect!

Enjoy my blog? For more such awesome blog articles - follow, subscribe and let's connect on LinkedIn , Twitter ,YouTube

Stay tuned!

Published on:

Learn more
Need help with this product?

We can help you with Multithreaded Execution Of The Calculate Sales Totals Batch Job in Dynamics 365 Finance and Operations

If you want help implementing, troubleshooting, or improving this product, contact us and we’ll point you in the right direction.

Rakesh Darge's Blog
Rakesh Darge's Blog

Rakesh Darge's Blog

Share post:

Related posts

The AOS Math That Kept One Admin Up At Night - And Why PPAC's New F&O Details UX Finally Puts It To Rest

It was 11:40 PM when the message landed in a Dynamics 365 community channel. "We currently have one LCS environment with around 900 users that...

1 month ago

One Roadmap to Rule Them All: What the AI at Work Roadmap Means for Dynamics 365 and Power Platform Architects

If you've ever bookmarked a Release Plan page on Learn, saved a filtered view in "My Release Plans," or built a client deck around Wave 1/Wave...

2 months ago

"Fix ‘This is Not a Unified Environment’ Error in D365 FO – Why Metadata Download Fails in Visual Studio"

🚨 “This is not a unified environment…” - A Story Every Dynamics 365 Finance & Operations Developer Should Hear Let me start with a real story...

6 months ago

PPAC Unlocked: Deploying Dynamics 365 ERP Environments with and without Demo Data

Let me start with a story… A few months ago, I was working with a customer who was planning to implement Dynamics 365 ERP. Their approach was ...

6 months ago

My Experience with AB-100: Earning the Microsoft Certified AI Business Solutions Architect Badge

The AI space is evolving rapidly, but very few certifications truly reflect how AI is designed, governed, and delivered in real business envir...

8 months ago

Demystifying the Copilot Sidecar Architecture in Dynamics 365 Finance and Operations ERP: A Solution Architect’s Guide

Welcome to the future of enterprise resource planning! If you're exploring the world of Dynamics 365 Finance and Operations (F&O), you've like...

1 year ago

Accelerate Your Development with Dynamics 365 FO Custom Batch Framework Templates

No matter the complexity of Dynamics 365 FO implementation, developing custom batch jobs is always necessary to accommodate tailored business ...

1 year ago

Improve Dynamics 365 FO Non-continuous Number sequence Performance: Tips and Strategies for Success!

Navigating performance issues in Dynamics 365 FO can be quite a challenge. There are numerous factors and considerations to take into account ...

1 year ago

How do we analyze Dynamics 365 FO Golden Copy configurations across the environments?

In the ever-evolving Dynamics 365 FO ecosystem, maintaining Golden Copy configurations remains one of the most discussed and reimagined aspect...

1 year ago

My Top 10 Learning of Copilot for Dynamics 365 Finance & Supply Chain Management

Hey Learners, 👏It seems that Microsoft Copilot, the AI-powered assistant, is gaining popularity worldwide. Customers and partners are trying ...

2 years ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.