Modify Codeunits Business central

Ghizlane
Ghizlane Member Posts: 45
b

Answers

  • RobyR
    RobyR 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
  • Ghizlane
    Ghizlane 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
  • Developer101
    Developer101 Member Posts: 569
    procedure does not have to have same name
    United Kingdom
  • Ghizlane
    Ghizlane Member Posts: 45
    So even if procedures doesn't have same name, event onbeforeConfirmSalesPost executed. why?

  • navleong
    navleong 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.