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

How to Add field to Value Entry

(0) ShareShare
ReportReport
Posted on by 39

i want to add field to value entry and fill it from purchase invoice when it is posted, which codeunit should I use?

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,788 Moderator on at

    Hi,

    You can use Codeunit No. - 12 and use below event

    OnBeforeInsertValueEntry(ValueEntry, ItemJnlLine, ItemLedgEntry, ValueEntryNo, InventoryPostingToGL, CalledFromAdjustment,

                   OldItemLedgEntry, Item, TransferItem, GlobalValueEntry);

  • Muaaz Deyab Profile Picture
    39 on at

    I  can not find this event in codeunit 12

  • Muaaz Deyab Profile Picture
    39 on at

    I found it in codeunit 22

  • Suggested answer
    YUN ZHU Profile Picture
    98,233 Super User 2026 Season 1 on at

    Hi, just adding some info.

    You can use the shortcut key "Alt + Shift + E" to search for event directly in VS Code.

    pastedimage1675731156261v1.png

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    21,788 Moderator on at

    My apologies, It was codeunit 22, it was typo mistake, glad you found that. let me know if its helping you.

    Thanks.

  • Muaaz Deyab Profile Picture
    39 on at

    Thanks for your answer I really appreciate that. Yes i solved the problem

  • Muaaz Deyab Profile Picture
    39 on at

    Thank you this is really helpful

  • Suggested answer
    Nitin Verma Profile Picture
    21,788 Moderator on at

    Thanks for update.

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 2,055 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,063 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,014 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans