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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

MUlti Threading in D365 FO

(1) ShareShare
ReportReport
Posted on by 17

Hi everyone,

I have a small requirement for running a batch job using sysoperation framework and I am having 100 companies in my system, and i need to run the batch job using the multi threading.

So that batch job can be run for 1 companies in one thread and it can run parallel with 15 companies as 16 number of threads is max MS gives for a decent machine.

I do not have any information about multi threading and also how to achieve it in D365.

I have having contract class, UI builder class, Controller class and service class.

I am using a list in the dialog to capture all the companies selected in lookup from dialog. Now i need to run my core class per single company per one thread so that 15 companies core logic will be running at same time to reduce some pressure on system and reduce time.

Can anyone please explain me the concept of multi threading and how to achieve it.

Thanks in advance.

I have the same question (1)
  • Suggested answer
    nunomaia Profile Picture
    25 Moderator on at

    You can split your work in multiple task

    Take on A simple way to implement a parallel batch processing in X++ | Denis Trunin's X++ Programming Blog    

  • Siddharth Profile Picture
    17 on at

    HI Nuno,

    Thank you for your reply.

    But I did not understand from that link and also they were using run base batch and i want to do it with Sysoperation framework.

    And i want mainly how to write the code, It will be so helpful if anyone could assist on it.

    Thanks in advance.

  • omesh Profile Picture
    141 on at

    Hi Siddharth,

    Could you please check below link. it shows multithreading using sysOperation framework.

    Batch parallelism/multithreading in Dynamics 365 for Finance and Operations (D365FO) | LinkedIn

    Thank you,

    Umesh.

  • Siddharth Profile Picture
    17 on at

    Hi Umesh,

    Thank you for your reply.

    I have checked nearly 20 links actually but no one mentioned clearly which all classes and code to be written.

    In all the links, it was given partially which is not able to be easy to understand by me.

    If anyone could explain me more clearly like what all methods and classes to be used, it will be of great help.

    you can also reach me on siddharthkosuru@gmail.com.

    Thanks in advance.  

  • Sachin Mittal Profile Picture
    2 on at
    Hi, I met with a similar requirement can you help me, with exact code for all classes. I also need to implement multithreading on sys operation framework, but not get exact code from links available, you must have implemented it by now, please send codes to sachinmittal587@gmail.com , it would be very helpful to me. 
    Thanks

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans