Modify Codeunits Business central

GhizlaneGhizlane Member Posts: 45
b

Answers

  • RobyRRobyR ItalyMember 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?
    vbfivn2ea32x.png

    with this code I can change the dialog box

    66us7j00rdd9.png

    but I don't understand how this event run it even if the procedure hasn't same name (ConfirmPost,MyConfirmPost)
    thanks
  • Developer101Developer101 Member Posts: 352
    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.