BC Friday Tips #74 Copy Document and Custom Field
When adding custom fields to Sales Header or Sales Invoice Header tables, developers must consider how the Copy Document feature will handle those fields. The post explains that custom fields are automatically copied along with documents, requiring developers to decide whether values should be copied, cleared, or recalculated to maintain data integrity.
Read it hereOpen in Claudehttps-thatnavguy-com-blog-2026-bc-friday-tips-74-copy-document--70de705561.md

post That NAV Guy
"If users use Copy Document, your custom field will be copied too."
Key points
- Custom fields added to Sales tables are automatically included when users copy documents
- Developers must determine for each field whether its value should be copied, cleared, or recalculated
- Improper Copy Document behavior can introduce invalid data and cause process issues
- Field design decisions at creation time prevent problems during document operations
Quotes
- “If users use Copy Document, your custom field will be copied too.” (This explains that custom fields are not exempt from Copy Document behavior, making developers responsible for controlling this behavior)
- “A small design decision now can prevent a lot of problems later.” (This emphasizes the importance of planning Copy Document behavior upfront rather than fixing it reactively)
AL objects mentioned
As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- 🧩 Deriving dimensions in Business Central beyond Default Dimensions — possibly related: both name Table 112 “Sales Invoice Header”
- BC 29 lets a single index span base table and table extension fields — possibly related: both name Table 112 “Sales Invoice Header”
- BC Friday Tips #56 Understand Missing Fields in Copy Documents — possibly related: both name Table 112 “Sales Invoice Header”
- D365 Business Central: How to Fix Missing Sales Invoices in the API — possibly related: both name Table 112 “Sales Invoice Header”
- Dynamics 365 Business Central: “Hide Company Bank Account” setup in General Ledger Setup (Update Company Bank Account on posted documents) — possibly related: both name Table 112 “Sales Invoice Header”
- Dynamics 365 Business Central: Displaying Sales/Purchase Order No. in Item Ledger Entries (Source Order No. and Source Description) — possibly related: both name Table 112 “Sales Invoice Header”
- Dynamics 365 Business Central: How to check whether External Document No./Vendor Invoice No. are unique or duplicated – Customization — possibly related: both name Table 112 “Sales Invoice Header”
- Dynamics 365 Business Central: How to run a Report in Preview Mode without the Request Page (Hide Request Page) — possibly related: both name Table 112 “Sales Invoice Header”
- Dynamics 365 Business Central: Searches for duplicate external document numbers in sales documents and posted documents (Standard function/procedure) — possibly related: both name Table 112 “Sales Invoice Header”
- Leveraging RecordRef and FieldRef for Dynamic Coding — possibly related: both name Table 112 “Sales Invoice Header”
Heads up
- gotcha: “If users use Copy Document, your custom field will be copied too.”
- warning: “Should this value be copied? Should it be cleared? Should it be recalculated?” (about table Sales Header, table Sales Invoice Header)
Context
- Features: Copy Document, Custom Fields
Source: That NAV Guy, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.