Code of Auto filled fields in AX 2012

Hi,

As we all know, Item related fields will auto populate to Sales orders or Purchase orders on the creation level. So where can i find those programming codes ?

I have to auto populate Product Description instead of Product name in the Sales Line Text field.

Regards,
Neethu

You have a few options. If you want to change how a particular field is populated, you can look at references of the field to find out where it happens. It sounds like the best approach in your case.

Or, when you’re looking for logic related to initialization from a particular table, you usually can find a method following the “initFrom” pattern, such as SalesLine.initFromInventTable(). The initialization is usually quite simple, but that’s not the case of SalesLine/PurchLine.