Modify Codeunits Business central

GhizlaneGhizlane Member Posts: 45


  • RobyRRobyR Member Posts: 39
    If this is a question, you can't change Codeunits in BC but only connect to existing events and change the business logic
  • GhizlaneGhizlane Member Posts: 45
    edited 2019-04-11
    but how we can do it?

    with this code I can change the dialog box


    but I don't understand how this event run it even if the procedure hasn't same name (ConfirmPost,MyConfirmPost)
  • Developer101Developer101 Member Posts: 523
    procedure does not have to have same name
    United Kingdom
  • GhizlaneGhizlane Member Posts: 45
    So even if procedures doesn't have same name, event onbeforeConfirmSalesPost executed. why?

  • navleongnavleong Member Posts: 4
    You can't modify original based code. All you can do is extend the codeunit procedure and write down your new code to re-overwrite the original code.
Sign In or Register to comment.