Skip to main content

Notifications

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

flowing option field from item Reclass journal to Item ledger Entry

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 59,125 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 59,125 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans