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

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,698 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
    95,311 Super User 2025 Season 2 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,698 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,698 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

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 3,177

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,467 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,435 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans