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

Notifications

Announcements

No record found.

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 583

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
    583 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
    583 on at

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

  • Suggested answer
    Marco Mels Profile Picture
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans