Notifications
Announcements
No record found.
To control the auto-application of sales invoices in customer ledger entries in Dynamics 365 Finance and Operations (D365 F&O), you can use configuration settings and event handling. Here are the steps to achieve this:
Navigate to Accounts Receivable Parameters:
Set Auto-Apply Parameters:
Create a New Class for Event Handling:
Subscribe to the Relevant Events:
CustTrans.OnInsert
CustTrans.OnUpdate
Implement Custom Logic:
Here is a basic example of how you might set up an event handler in X++:
[EventHandlerFor(tableStr(CustTrans), tableMethodStr(CustTrans, insert))] public static void CustTrans_OnInsert(Common sender, DataEventArgs e) { CustTrans custTrans = sender as CustTrans; if (custTrans) { // Custom logic to control auto-application if (custTrans.TransType == CustTransType::Invoice) { // Example condition to prevent auto-application if (custTrans.AmountCur > 1000) { custTrans.AutoApply = NoYes::No; } } } }
By combining these configuration settings and custom event handling, you can effectively control the auto-application of sales invoices in customer ledger entries.
If you find this solution useful, please like it and accept it as answer.
-ArchitectMadhan
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,116
Khushbu Rajvi. 764 Super User 2025 Season 2
YUN ZHU 635 Super User 2025 Season 2