Announcements
No record found.
Hi everyone,
I’m trying to transfer two custom fields from the Purchase Header table to the posted documents (Purch. Rcpt. Header and Purch. Inv. Header) during the posting process.
Here’s what I’ve done so far:
However, after posting, the values from the Purchase Header are not transferred to the posted documents.
Am I missing something in the standard posting process? Do I need to explicitly handle this transfer in code (e.g., using events or subscribers), or should it work automatically?
Any guidance or best practices would be appreciated!
Thanks in advance
This should work if the same Field ID and data type have been used. Please double-check your code to ensure consistency. If the issue still persists, try debugging the exact logic in the base application where the TransferFields function is being called.
TransferFields
Additionally, verify whether any other customizations or event triggers might be interfering and causing this issue.
Hi, good day I hope this can help you, and give you some hints.
Business Central: Transferencia de campos entre tablas · Christian Amado
Dynamics 365 Business Central: How to flow/pass custom field values | Dynamics 365 Lab
Best Regards Gerardo
local procedure OnBeforePurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end;
local procedure OnBeforePurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end;
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 1,948 Super User 2026 Season 1
YUN ZHU 1,048 Super User 2026 Season 1
Teagen Boll 727 Super User 2026 Season 1