Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / X++ Asynchronous API s...
Finance forum
Unanswered

X++ Asynchronous API support

Posted on by 6
hello.
I'm trying to create an Asynchronous API with D365 F&O X++.
However, I couldn't find any sample code.
While searching, I heard that X++ does not directly support Asynchronous API.
I wonder if Asynchronous API is supported in X++.
If it is supported, I would like to know sample code.
I need your help.
  • Martin Dráb Profile Picture
    Martin Dráb 228,135 Most Valuable Professional on at
    X++ Asynchronous API support
    Okay, it's not really a question about X++; it's about integration of other systems with F&O.
     
    There are many possible ways. For example, the other system can send multiple records at once through data management APIs. Or you can put messages to a queue and send them to F&O by Power Automate one by one, or have a batch in F&O getting messages from the queue.
  • X++ Asynchronous API support
    We are using Sychronous API with ODATA, so when we send the API from outside, the data goes directly into the table.
    When receiving data through API, we are trying to change the Sychronous API to Ayschronous API to receive data within a certain time to prevent a large amount of data coming in at once.
     
    I'm sorry if it's difficult to know what I want to achieve.
  • Martin Dráb Profile Picture
    Martin Dráb 228,135 Most Valuable Professional on at
    X++ Asynchronous API support
    I'm sorry, but I still don't understand what you need from us. Please explain your business scenario and the problem you're struggling with.
  • X++ Asynchronous API support
    hi,
    Thank you for your reply.
    I am trying to create an asynchronous API using the batch data API.
  • Martin Dráb Profile Picture
    Martin Dráb 228,135 Most Valuable Professional on at
    D365 X++ Asynchronous API support
    You'll need to explain what exactly you're trying to achieve, because an Application Programming Interface (API) can be almost anything. You need to tell us what kind API for what purpose you have in mind.
     
    You can SysOperation with several aynchronous execution modes, runAsync(), .NET async APIs, asynchronous integration patterns (e.g. message queues) and so on. But it's impossible to say which one would meet your requirements if you don't tell us what the requirements are.
  • Kevin Xia Profile Picture
    Kevin Xia Microsoft Employee on at
    D365 X++ Asynchronous API support
    Hi,
    You can refer to this official documentation: Integration between finance and operations apps and third-party services - Finance & Operations | Dynamics 365 | Microsoft LearnThe article describes integration patterns, integration scenarios, and integration solutions and best practices. However, it doesn't include technical details about how to use or set up every integration pattern. It also doesn't include sample integration code. You can also check out this official documentation: Custom service development - Finance & Operations | Dynamics 365 | Microsoft Learn. This article describes sample code on GitHub for custom service development.
    Best regards,
    Kevin

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,277 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,135 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans