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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How implement multi-threading using SysOperation framework

(1) ShareShare
ReportReport
Posted on by 6
I have gone through many articles available but can't be able to implement the same, need help for that. here is my service class, in data update class, I am multiple 20 30 columns values in a custom table, how implement multithreading for same
/// <summary>/// MultithreadingService/// </summary>internal final class MultithreadingService extends SysOperationServiceBase{        /// <summary>    /// Servcie Class Process method    /// </summary>    /// <param name = /_contract/>Process</param>    public void process(MultiThreadingContract _contract)    {        #OCCRetryCount        try        {            if (_contract)            {                ttsbegin;                MultiThreadingDataUpdate::DataUpdate(_contract.getFromDate(),_contract.getToDate());                Info('Operation Successful');                ttscommit;            }        }        catch(Exception::Error)        {            error(/@SYS104505/);        }            }}
 
I have the same question (0)
  • Martin Dráb Profile Picture
    239,660 Most Valuable Professional on at
    Please tell us more about the processes that you want to run in parallel in several threads. "I am multiple 20 30 columns values in a custom table" says nothing useful.
  • Sachin Mittal Profile Picture
    6 on at
    Ok what I have done is for learning purposes .i.e. multithreading., I have added 25 columns in sales table  , and inserting values in those columns. And in data contract class I have create from date , to date contracts , to select sales orders in given range. So i want to implement multithreading for same process
  • Martin Dráb Profile Picture
    239,660 Most Valuable Professional on at
    You need at least two pieces of work to be able to run multiple things in parallel. If you're unable to split your logic to two or more pieces, then you can't use multithreading.
     
    What number of fields you have in a table is completely irrelevant, because that's not a process to execute.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 671

#2
André Arnaud de Calavon Profile Picture

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

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 589 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans