Hi Business Central experts,
We have added one custom field to Business Central Customer table, and the same field to the SalesHeader table too, using AL. Now we hope to use the value from the customer table as a default for the value in the SalesHeader table: the value from the Customer table needs to be copied as soon as a customer id is chosen in the Sales Order screen.
Here's a forum post about NAV onpremises that explains how to do it:
https://community.dynamics.com/nav/f/34/t/262618
However, it seems I cannot do it in the same way: I can not find any Microsoft-written AL-code (and therefore no SalesHeader "OnValidate" trigger code either). Also it does not seem inline with the idea of writing extensions if I add my own code directly to a microsoft-written module.
Is there a current recipe on how to do this?
We have a cloud sandbox, plus I have a local docker sandbox too.
With best regards,
Wolter Kaper