So using BC 365 19.5 on-prem here. I have created a couple of AL table extensions. For a specific custom field. One adds the field to the Item Journal Line table, the other adds the field to the Item Ledger Entry table. My goal is to take the defined value in the IJL and push it into the new ILE record. Code snippet below.
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Item Jnl.-Post Line", 'OnBeforeInsertItemLedgEntry', '', true, true)] local procedure CopyIjeVendorUuid(var ItemLedgerEntry: Record "Item Ledger Entry"; ItemJournalLine: Record "Item Journal Line") begin ItemLedgerEntry."Vendor UUID" := ItemJournalLine."Vendor UUID"; end;
I've run across similar exercises detailed online, but the custom field value doesn't appear as expected in the Item Ledger Entry. Any suggestions?