web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

What integration method I can use to pass data from D365FO to an external API?

(1) ShareShare
ReportReport
Posted on by 8
Hi seniors,

I have successfully tested an external API in Postman using Post method and I gave some dummy data into the body of the request but now I want to integrate D365FO with that API. I actually pass few invoices and it get verified from a third party. Now, I want to pass the real invoice of D365FO. I have to pass an invoice with multiple invoice lines. So, I want to ask what is the best integration method to achieve this? 

What I have tried is that I have created a .NET project and in that I have used list to cater this but I am unable to pass list as a parameter from D365FO to this method which is in .NET. Can anyone please let me know how can I achieve this like what should I use either custom service, external web service or anything else?

I will be really grateful to you for your cooperation. 

Thanks in advance.


I have the same question (0)
  • Martin Dráb Profile Picture
    236,513 Most Valuable Professional on at
    What integration method I can use to pass data from D365FO to an external API?
    You told us almost nothing about your requirements, so it's impossible to say which of possible solutions is the best for you.
     
    You should thing about thinks like how quickly you need the response, what should happen if the other system doesn't respond in a certain time frame, whether the API is reachable from internet, how many requests do you expect and so on.
     
    A custom service won't help you - that's used for requests to F&O, while you want the other direction.

    An external web service is what you already have. You mentioned you have an Application Programming Interface (API), but the other details (POST method, Postman) reveal what kind of API is it - a web service.
     
    One option is making a request directly via .NET APIs, as you attempted. We already discussed the problem of the list in How to pass List from X++ to C# using DLL with passing method?. If you want to continue the discussion, simply reply there.
     
    Another possible solution is using business events. For example, you may want put the business event to a message queue to implement reliable asynchronous communication and having a flow, an Azure function or something processing the queue and making requests to the other system.
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    What integration method I can use to pass data from D365FO to an external API?
    Hi,
    You can use the external web service, I found this official document for you: Consume external web services - Finance & Operations | Dynamics 365 | Microsoft Learn. It describes some steps on how to consume an external StockQuote service from X++. If the external API is a web service, you can use the external web service functionality in D365FO to invoke that API. Depending on the requirements of the external API, you can set the appropriate parameters and use the HTTP request to send the data to that API.
    Best regards,
    Kevin

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,841

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 783 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 490 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans