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 :
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
    306,298 Super User 2026 Season 1 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,286 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans