In Dynamics 365 for Finance and Operations, development requirements can be better achieved using an extension approach on standard application objects. Unlike overlayering in AX 2012, extensions in Dynamics 365 for Finance and Operations don't overlay the base model elements. Instead, it compiles them in separate assemblies, which allows us to customize on standard objects and associated business logic using Event Handler. Extensions provide minimal overhead when a base package is upgraded.
In this recipe, we will be extending InventJournalTrans
and adding new fields in it.
- Create a new project in Visual Studio
UsingExtensions
and select package, which referencesApplication
suit package. - In
Application
explorer, find the tableInventJournalTrans
and create its extension. - Create a new field,
AvailableStock,
with the following properties:
Property | Value |
Name |
|
Label |
|
EDT | Qty |
- Your new field should look as follows:
- Copy its event handler method...