Relative Content

Tag Archive for microsoft-dynamicsx++

Calculating the Net Amount on Sales Order Line using a custom formula

I have to calculate the Net Amount on Sales Order Line by adding the number of months for which the item will be sold on that price. For this purpose, I have created extension of the form SalesTable and used the event handler OnValidating for the Data Field ‘Line Amount’.
Following is the code I have written:

How to perform MAX date in data entity

I am attempting to create a data entity with the SysUserLog table to export the latest login date for a user (createdDateTime field). I am unsure how to perform the MAX date with a data entity to represent the following SQL query: