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

New field on Purchase Header - stop transfer field to Posted invoice

(0) ShareShare
ReportReport
Posted on by 3,424

Hi All

I have created a new field 50001 MyNumber on purchase header table and Purchase Invoice Header table.  When I enter a value in this field on Purchase order, or purchase Invoice and post document, the posted purchase invoice header gets this field automatically.  Is there a way to stop copying this field to posted document if the source document is a purchase order? Basically what we want is copy field only if the source document is invoice. Other option is to create a separate field but I'm wondering if there is a way to conditionally override transfer field function

  • Suggested answer
    Akshay_Panchal Profile Picture
    402 on at

    Hi,

    You can add code for the specific field after the called transferfield. you can use OnBeforePurchInvHeaderInsert() event in Purch. Post codeunit to update that field. if it is order make it blank.

    Thanks.

    Verfiy, If this answer is helpful to you.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 633 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 419 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 236 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans