[EventSubscriber(ObjectType::Table, Database::"Sales Header", 'OnBeforeDeleteEvent', '', false, false)] local procedure OnBeforeDelete(var Rec: Record "Sales Header"; RunTrigger: Boolean) var SalesSetup: Record "Sales & Receivables Setup"; begin if Rec.IsTemporary then exit; if RunTrigger then exit;
Answers
What is NAV or BC version?