December 2018
Beginner
210 pages
5h 7m
English
To declare a Record variable, you must enter its name, select the Record data type in the DataType field, and choose one of the database tables as the variable's Subtype. In the next code sample, we will read data from a Item table, which must be declared as a variable. In a new codeunit, create a function, UpdatePrices, and add a local variable as shown in the screenshot:

Then add another variable, so that there are two local variables in the function:
Item : Record Item;SalesPrice : Decimal;
The UpdatePrices function will loop through all items, looking for sales in the past month. ...
Read now
Unlock full access