Skip to main content

Notifications

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
    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
    294,914 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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
Zain Mehmood Profile Picture

Zain Mehmood 6 Moderator

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans