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 :
Small and medium business | Business Central, N...
Suggested answer

How do I update field External Document No on Cust. Ledger Entry in Business Central Al language

(0) ShareShare
ReportReport
Posted on by 37

Hi All,

In the Pic I add the field External Document No in (Posted Sales Inv. - Update) After that, the external document no field Appeared in the posted Sales invoice.

After that when I go to Cust Ledger Entry Table the field (External Document No) Modification does no appear.

And to be used on a customer statement report.

How to update on the code al language?

Kindly assist,

Update-Posted-Sales-Invoice.PNG

6560.CustLedgerEntry.PNG

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,071 Moderator on at
    RE: How do I update field External Document No on Cust. Ledger Entry in Business Central Al language

    You should use this integration event and write code for updating the Customer ledger entry there:

      [IntegrationEvent(false, false)]

       local procedure OnAfterRecordChanged(var SalesInvoiceHeader: Record "Sales Invoice Header"; xSalesInvoiceHeader: Record "Sales Invoice Header"; var IsChanged: Boolean)

       begin

       end;

    The integration event is in page 1355.

    Remember to give your code unit permission to modify the customer ledger entry.

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: How do I update field External Document No on Cust. Ledger Entry in Business Central Al language

    Hi,

    I dont think the functionality you ran it will update the customer ledger as well, you need to customize the solution to update all related customer ledger entries of your posted invoices.

    Thanks.

  • Suggested answer
    YUN ZHU Profile Picture
    94,111 Super User 2025 Season 2 on at
    RE: How do I update field External Document No on Cust. Ledger Entry in Business Central Al language

    Hi, I'm not sure how you added this field, there is some code needed after adding the field.

    More details: How to extend the Posted Document Update page (A solution for editing Posted Document)

    https://yzhums.com/24923/

    Also, I am not sure if the External Document No field will update the Customer Ledger Entry table, you need to test it in detail.

    Hope this can give you some hints.

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,351

#2
Sumit Singh Profile Picture

Sumit Singh 2,072

#3
YUN ZHU Profile Picture

YUN ZHU 1,807 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans