HI,
I am trying to use an event subscriber functionality of 'Gen. Journal Line Table' on my On-Prem Business Central Environment ( v19).
Code EX:
[EventSubscriber(ObjectType::Table, Database::"Gen. Journal Line", 'OnAfterSetupNewLine', '', true, true)]
local procedure OnAfterSetupNewLine(var GenJournalLine: Record "Gen. Journal Line")
begin
Message('1 : Ok');
end;
when i publish above code in a Code Unit ( as a extension) to my on-prem environment it does not trigger when i insert a new line to the Gen. Journal
But, when i publish same extension to cloud SandBox, it triggers when i insert a new line to the Gen. Journal,as i expect.
appreciate if you could help me to identify to root cause in on-prem environment for not triggering above event subscription.
Thanks,
Nishan