
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
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.
Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
OussamaSabbouh
2,068
Super User 2026 Season 1
Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Dhiren Nagar
1,194
Super User 2026 Season 1
Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
YUN ZHU
1,123
Super User 2026 Season 1