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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Running Code Asynchronous in Dynamics Ax

(1) ShareShare
ReportReport
Posted on by

 Hi Everyone,

          I have a Class and i want to run it Asynchronously, Can anyone please help me out, how to do it. Or is it possible to run code Asynchronously in Dynamics Ax other then Service. Can anyone please provide some code Example on how to do it. Thanks.

Best Regards

Shah

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi Shah,

    You can create a batch job for this or have a look at how the async calls are made for transfer subledger transactions to the accounting entries. A setup for syns, async or batch processing for this subledger posting can be found in the Ledger parameters. From there you might be able to find where this field is used and where it will start a thread to run the code.

  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    As Andre mentioned you can use batch framework to do asynchronous tasks, please refer to tutorial_RunBaseBatch class. It is standard way to do it in AX.

    You can use SysOperationFramework, it has asynchronous mode of executions, here is white paper: [View:https://www.microsoft.com/en-us/download/details.aspx?id=29215:750:50]

    Or you can use threads. Please find link to old community post with lots of info about threads [View:https://community.dynamics.com/ax/f/33/t/106768:750:50]

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans