Advantage of ModifyInventDim Method ... (PURCHLINE TABLE)

In D365 FO customizations, sometime there is a requirement to perform any certain action after modifying Inventory Dimensions. So it is very problematic for a developer to create the modified field cases for every inventory dimension through event handlers or by COC.

Lets suppose there are multiple dimensions like Site, Warehouse, configurations , color , style or etc. Now if you want to call your code after their modifyField Method, its very lengthy process.

To overcome this I want to tell you the method which is called after every modification of inventory dimension in PurchLine table. You can also find these type of methods in other tables as well like salesLine.

For now , I am trying to explore this. by telling you an example:







In the above snapshot you can see I have created the coc of  the Table method of purchLine i.e modifyInventDim. And I have added a info after the next statement line. 


Results:

On changing any of the inventory dimensions , I am getting the info. It means this works.


Regards,
Asad





Comments