web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    23 Moderator on at
    RE: MUlti Threading in D365 FO

    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
    RE: MUlti Threading in D365 FO

    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
    RE: MUlti Threading in D365 FO

    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
    RE: MUlti Threading in D365 FO

    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
    MUlti Threading in D365 FO
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,122

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 918 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 646 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans