How to flow a value from a field on a page to another page?

I have created a 2 new custom fields in the customer table.

I have also created the same fields in the sales header, now when I create a sales order with the above customer, I want to flow the data of those 2 fields to the sales order. Can you guys please help me with this?

You need to add it to the validate Sell-To Customer No. code where it copies the customer address field.

You tagged this as “Dynamics NAV”, but the pictures you shared are from Business Central, so I expect that you use BC and AL for this?

If that is the case, then I would suggest that you subscribe to the “OnAfterCopySellToCustomerAddressFieldsFromCustomer” event (on the Sales Header table) and do it here.

Can you elaborate on it if you don’t mind?

Are you looking for more info on how to subscribe to an event?