Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / MUlti Threading in D36...
Finance forum
Suggested answer

MUlti Threading in D365 FO

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.

  • Sachin Mittal Profile Picture
    Sachin Mittal 482 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
  • Siddharth Profile Picture
    Siddharth 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.  

  • omesh Profile Picture
    omesh 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
    Siddharth 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.

  • Suggested answer
    nunomaia Profile Picture
    nunomaia 10,684 Super User 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    

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,584 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,864 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans