Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
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 490 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 2024 Season 1 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    

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans