Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

How to customize the creation of the Corrective Credit Memo?

Posted on by 95
Hi everyone,

I want to customize the creation of the Corrective Credit Memo from Posted Sales Invoice so that it only adds a line of type G/L Account, is it possible to do it from an extension?
  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,127 Super User 2024 Season 2 on at
    How to customize the creation of the Corrective Credit Memo?
    yes, you can use OnBeforeCopySalesInvLinesToDoc and set IsHandled to true and fill the lines as you want using ToSalesHeader details
  • isabtogumon Profile Picture
    isabtogumon 95 on at
    How to customize the creation of the Corrective Credit Memo?
    Thanks for your answer Mohana Yadav, Do you know how I can stop the process after the header is created and add the line with data from another table?
  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,127 Super User 2024 Season 2 on at
    How to customize the creation of the Corrective Credit Memo?
    Yes, you can use subscriber OnBeforeCopySalesInvLines and filter FromSalesInvLine variable 

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,219 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans