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

  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Running Code Asynchronous in Dynamics Ax

    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]

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,516 Super User 2025 Season 1 on at
    RE: Running Code Asynchronous in Dynamics Ax

    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans