Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

flowing option field from item Reclass journal to Item ledger Entry

(0) ShareShare
ReportReport
Posted on by 221

Hi experts ,

I need to move field issue type(option)field in this i need to added 3 more option member(a,b.c) and then need to flow from Item Reclass journal to Item ledger entry .I tried to
1. issue type(option)field in this i need to added 3 more option member(a,b.c)
2.flow from item Reclass journal to Item ledger Entry on post action or event subscriber but not know exact Event .

not Getting how can anyone help me on this.

Thanks in Advance

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 60,050 Super User 2024 Season 2 on at
    RE: flowing option field from item Reclass journal to Item ledger Entry

    which standard field? Is it Enum field and extensible?

  • DineshM Profile Picture
    DineshM 221 on at
    RE: flowing option field from item Reclass journal to Item ledger Entry

    Thank you For Quick Responce sir, I will try above code

    Before that i need to add four option members in standard field which option filed can we add option members in standard filed

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 60,050 Super User 2024 Season 2 on at
    RE: flowing option field from item Reclass journal to Item ledger Entry

    I hope you have added the field in Item Journal Line table and Item Reclass. Journal page.

    Posting happens in the codeunit Item Jnl.-Post Line" so use the below event

    OnBeforeInsertItemLedgEntry

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Item Jnl.-Post Line", 'OnBeforeInsertItemLedgEntry', '', false, false)]

       local procedure OnBeforeInsertItemLedgEntry(var ItemLedgerEntry: Record "Item Ledger Entry"; ItemJournalLine: Record "Item Journal Line"; TransferItem: Boolean; OldItemLedgEntry: Record "Item Ledger Entry"; ItemJournalLineOrigin: Record "Item Journal Line");

       begin

           ItemLedgerEntry.SelectOption := ItemJournalLine.SelectOption;

       end;

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,622 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans