Skip to main content

Notifications

Business Central forum
Suggested answer

AL Code for Integration between Business Central and External Sales System via API

Posted on by 82
Hello,
 
I'm looking for some guidance on how to write AL code in Visual Studio Code to establish a continuous integration between Microsoft Dynamics 365 Business Central and an external sales system via API.
 
Specifically, I want to achieve the following:
Retrieve customers and sales invoices created in the external sales system and import them into Business Central.
Continuously synchronize item details from Business Central to the external sales system.

Most examples I've come across online demonstrate integration using Postman, but I'm specifically interested in implementing this functionality using AL code in Visual Studio Code.
 
I would greatly appreciate any advice, tips, or resources that can help me accomplish this task efficiently.
 
Thank you in advance for your assistance!
  • Lama Khaled Profile Picture
    Lama Khaled 82 on at
    AL Code for Integration between Business Central and External Sales System via API
     
    Hi Mrs,
     
    Thanks for your advice on using HTTP data type, I searched and found about this but I need to use AuthO type to use secret ID and token, and how I make an integration between an Outside system with Business Central to get and post data between them, how I can apply the mapping between them, I need example code if you can ? I apprsieated your effort but I need someone to give me the light of the road in this matter because I am a beginner and first time I will do that 
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 61,962 Super User on at
    AL Code for Integration between Business Central and External Sales System via API
    Hi, you can search for the "HttpClient data type" keyword and you should be able to find a lot of learning materials.
    For example,
    Call external services with the HttpClient data type
     
     
    Hope this helps.
    Thanks.
    ZHU
  • Lama Khaled Profile Picture
    Lama Khaled 82 on at
    AL Code for Integration between Business Central and External Sales System via API
    Hi,
    Thanks, gdrenteria for your reply but I need the basic steps to start creating AL code for the connection between BC and the second system, the URL for the document you sent has a complicated way that isn't useful for me because I'm a beginner can you advise?
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 3,574 Super User on at
    AL Code for Integration between Business Central and External Sales System via API
    Hi
    I hope this can help you. And give you some hints. Extending standard APIs (2) – Kauffmann @ Dynamics 365 Business Central
    BR
    GR

Helpful resources

Quick Links

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,623 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 224,463 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans