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...
Answered

Extension of Default APIs

(0) ShareShare
ReportReport
Posted on by 170

Hi Experts,

i am working on a Integration task for Business Central and a in-house application. I need to integrate Sales Order default API. But, in this API, there are limited fields. I want to extend this API and add some new field in "Sales Order Entity Buffer' table. 

However, i am confused how the data got updated/inserted in this table from 'Sales Header' table.

Thanks in advance.

  • Verified answer
    THE Italian Profile Picture
    Microsoft Employee on at

    You have to create your own custom API. You cannot extend standard API pages. 

    If you need to know where are standard API pages, just to have a look at these, u might read this blog post

    https://www.kauffmann.nl/2019/11/02/where-is-the-api-v1-0-source-code/

  • Sunil1991 Profile Picture
    170 on at

    Thank you @Duilio Tacconi.

    This blog is very helpful.

    i have one more query, when i saw the source code of "Sales Order" API page. there is below procedure available to post the sales order.

    procedure ShipAndInvoice(var ActionContext: WebServiceActionContext)

       var

           SalesHeader: Record "Sales Header";

           SalesInvoiceHeader: Record "Sales Invoice Header";

           SalesInvoiceAggregator: Codeunit "Sales Invoice Aggregator";

       begin

           GetOrder(SalesHeader);

           PostWithShipAndInvoice(SalesHeader, SalesInvoiceHeader);

           SetActionResponse(ActionContext, Page::"APIV1 - Sales Invoices", SalesInvoiceAggregator.GetSalesInvoiceHeaderId(SalesInvoiceHeader));

       end;

    I am confused, how i can call this to post the sales shipment and invoice using the API.

    Regards,

    Sunil Kumar

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    By using the API base url and appending /NAV.ShipAndInvoice. More details here:

    demiliani.com/.../

  • Sunil1991 Profile Picture
    170 on at

    Thank you Stefano Demiliani.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 554 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 344 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 189 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans