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...
Unanswered

How to safely transfer custom fields from Sales Header to Sales Invoice Header during Posting in BC

(0) ShareShare
ReportReport
Posted on by 196

Hi

Question:

I added a custom field Agreement No. to both tables:

  • Sales Header
  • Sales Invoice Header

Both fields have the same Field ID:

field(52160; "Agreement No."; Code[20])

Example:

Before Posting:

Sales Header
Agreement No. = 1

After Posting:

Sales Invoice Header
Agreement No. = ?

My questions:

  1. Does Business Central automatically transfer the value because both fields have the same Field ID and name?
  2. If not, what is the recommended and safest AL approach to transfer custom fields from Sales Header to Sales Invoice Header during posting?

Which Event Subscriber or standard Microsoft pattern should be used?

  1. After posting, if I need to update the value of:
Sales Invoice Header."Agreement No."

is it allowed to modify posted documents?

If yes, what is the correct and recommended way to update a custom field in Sales Invoice Header safely without affecting the standard posting process?

Thank 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

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 757 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 451 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 391 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans