It looks like you're new here. Sign in or register to get started.
[EventSubscriber(ObjectType::Table, Database::"Sales Line", 'OnAfterInsertEvent', '', true, true)]
Juhl wrote: » Maybe temporary table is in use??
Juhl wrote: » It does. Thats why you ALWAYS check if its temporary, before running your code!!
Juhl wrote: » If not Rec.istemporary or RunTrigger then Exit; It also fires when run trigger is false. So check that as well.
Answers
Possibly, but it's a subscription on Sales Lines (Database::"Sales Line"), so shouldn't generate events unless sales lines are inserted
Thats why you ALWAYS check if its temporary, before running your code!!
Thanks for reply. Still puzzled why the event would trigger on a temp table. how do I check if it's a temp table?
Exit;
It also fires when run trigger is false. So check that as well.
Could you explain a little more about the run trigger issue?
Insert(true)