Tuesday, 5 December 2017

How to extend OOTB data entity in AX7 / D365

We intend to use the SalesOrderLineEntity to import data in some custom fields that we have added in SalesLine Table.

To add custom fields in SalesLine table, first extend SalesLine table and add custom fields:











Next add the custom fields in the SalesOrderLineEntity by extending the entity. When we extend the entity we see the custom fields in SalesLine datasource that we added in the above step:


















Drag these fields from datasource to the fields of entity:












Now extend the staging table for the entity named, SalesOrderLineStaging:










Now go to the Data Management:











Click Framework Parameters > Entity Settings > Refresh Entity List:










Create an import project :















Upload the excel file you want to import :











Click on the View Map to map the excel file to your custom fields in staging table:
















Click Import :


Thursday, 23 November 2017

Deprecated method today() in AX 7 / D365

In AX 7, the date method today() has been deprecated and it is now a best practice warning.










Instead now we must use the method getToday() available in DateTimeUtil.


How to block inventory in ax D365 / AX7

In Dynamics AX if we want to block inventory for certain item, we have an out of the box form which caters this need and blocks the inventor...