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 :
Business Central forum

AL: How to update customer ledger entry table after the same field is updated in sales invoice header table?

(0) ShareShare
ReportReport
Posted on by 150

I have an extension that updates a field in the sales invoice header table after the invoice is posted (from OnAfterPostSalesDoc). However, it looks like the data of the invoice is also copied by Business Central into another table, customer ledger entries. So when the extension changes the field in the sale invoice header record, the customer ledger entry one is not changed. What's the simplest way the change could also be reflected in this table?

Categories:
  • Suggested answer
    I Gusti Made Ari Profile Picture
    3,608 on at

    Create a Subscriber function to OnValidateYourField at Sales Invoice Header and then update the same field in Cust. Ledger Entry (link by document no.) if value being changed.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans