web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Copying an IJL field to a new ILE?

(0) ShareShare
ReportReport
Posted on by 787

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?

I have the same question (0)
  • Greg Kujawa Profile Picture
    787 on at

    I also tried subscribing to this event. Still no luck.

        [EventSubscriber(ObjectType::Codeunit, Codeunit::"Item Jnl.-Post Line", 'OnAfterInitItemLedgEntry', '', true, true)]
        local procedure CopyIjeVendorUuid(var ItemLedgerEntry: Record "Item Ledger Entry"; ItemJournalLine: Record "Item Journal Line")
        begin
            ItemLedgerEntry."Vendor UUID" := ItemJournalLine."Vendor UUID";
        end;

  • Suggested answer
    Greg Kujawa Profile Picture
    787 on at

    Disregard. I needed to revisit my other code portions that affect the IJL entries. All good.

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Understood, thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,850 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,084 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans