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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Setup API/Webservices

(2) ShareShare
ReportReport
Posted on by 6
Hello,
 
I am new as Business Central developer and havn't a big background as Developer generally. We're actually migrating our system on BC, and in this context I need to transpose all our webservices between data and our e-commerce website. Actually for testing purpose, I am trying to make someting like this : the website send me a /Customer's No./ and i'll send back data about his discounts lines about his customer group discount. The result must look like somethig like this, further down. I don't even know how to proceed and what's the best practice to achieve this.
 
I've already try to setup simple custom API and test it with Postman, it works but I don't know how to setup this with multi-table and some treatments. I've read some documentation talking about expose a codeunit as webservice, is this the way to go? I read also about Power Automate, I really don't know how to begin this work and where can I look to solve this.
 
I hope my english and my demand was clear,  Thanks a lot for your futur help !
 
{
    Client: {
        CustomerNo: '87860',
        Ending_Date: '01.01.0001'
    },
    Discount: {
        Details_discount: [
            {
                year: N1,
                Code: JA,
                description: Description,
                %taux: '35',
                Starting_Date: '01.01.0001',
                Ending_Date: '01.01.0001'
            },         
            {
                year: N1,
                Code: JW,
                description: Description,
                %taux: '30',
                Starting_Date: '01.01.0001',
                Ending_Date: '01.01.0001'
            },
        ]
    }
}
I have the same question (0)
  • Gerardo Rentería García Profile Picture
    25,709 Most Valuable Professional on at
  • Suggested answer
    YUN ZHU Profile Picture
    99,322 Super User 2026 Season 1 on at
    Hi, if the other system already has an external API that can be accessed, you can use HTTP Data Types to do it. There are some great examples in the post  below.
     
     
    Hope this helps.
    Thanks.
    ZHU

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,922 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,078 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 628 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans