Hi,
I am new to D365FO and this may seem like a silly question. However, any help will be highly appreciated.
I have an extension for base SalesTable, let's say, 'SalesTable.MyExtension' to which I have added few custom string fields. Ex: ReferenceID, DeliveryType etc.
Now if I want to access them from my X++ Code, how do we do that?
SalesTable salestbl;
salestbl.SalesID; => VALID
SalesTable.MyExtension salestblextension; => Throws error
salestblextension.ReferenceID; => INVALID
The error is "The name SalesTable.MyExtension does not denote a class, a table or an extended data type".
If I need to use the value in my custom fields in a class, how can it be accessed?
Any help is highly appreciated. Please excuse my amateurishness.
Thanks.