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)

Asynchronous Calling of Functions + Web service calls

(0) ShareShare
ReportReport
Posted on by

Hi Team, 

I have an integration with an external system that has an exposed web services to integrate/export data from Ax to that system.  Processing is algorithm is:

- When the Purchase Order is Confirmed

- Create a list of products from and order and verify if all those products exists on the external system.

- IF any product did not exist, retrieve product information from Ax and sync those over to the external system

- IF all products exists, sync the purchase order to the external system.

So basically all of the actions there have a function to retrieve data from ax and do a web service call to send out the data. Since I am implementing the process via Event Handler. How will I implement asynchronous calling of these operations? I did some research but most of the suggestions are about Batch Jobs.

Btw I have async functions on the web service functions.

Thanks.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    The reason why you can only read about batch jobs is that because that is the best way to handle asynchronous calls. AX is designed for single threaded execution within the client effectively locking interactivity while the process is executing, and the AOS service can do multithreading in form of using the Thread class or executing batch tasks. You should consider that design.

    http://www.artofcreation.be/2012/02/27/adding-runtime-tasks-to-a-business-operation-framework-service/

    http://www.schweda.net/blog_ax.php?bid=613&wdl=en

  • Brandon Wiese Profile Picture
    17,788 on at

    You can use the Thread class on the client also.  I have done client side offloading while the UI continues many times using Thread on the client.

  • Suggested answer
    Martin Dráb Profile Picture
    237,948 Most Valuable Professional on at

    My recommendation is using the SysOperation framework. Note that it has four execution modes (including Asynchronous and ReliableAsynchronous).

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