Modify Codeunits Business central

GhizlaneGhizlane Posts: 45Member


  • RobyRRobyR ItalyPosts: 39Member
    If this is a question, you can't change Codeunits in BC but only connect to existing events and change the business logic
  • GhizlaneGhizlane Posts: 45Member
    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 Posts: 351Member
    procedure does not have to have same name
    United Kingdom
  • GhizlaneGhizlane Posts: 45Member
    So even if procedures doesn't have same name, event onbeforeConfirmSalesPost executed. why?

  • navleongnavleong Posts: 4Member
    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.