D365FFO – AX – X++ – Get on-hand quantity

//Get InventDim buffer    inventDim.InventLocationId = importTable.InventLocationId;    inventDim.wMSLocationId = importTable.WMSLocationId;    inventDim.InventSiteId = InventLocation::find(importTable.InventLocationId).InventSiteId;    inventDim = inventDim::findOrCreate(inventDim); inventSum = inventSum::find(importTable.ItemId, inventDim.inventDimId);    

D365FFO – AX – X++ – Query On-Hand inventory using specific inventory-dimensions

Using the class InventDimOnhand, you can determine the on-hand inventory of articles and/or specific inventory-dimensions. The following job determines the inventory for a specific item and a specific inventlocation. This is grouped per color. static void getInventOnhandExample(Args _args) { ItemId itemId; InventDimOnHand inventDimOnHand; InventDimParm inventDimParmOnHandLevel; InventDimOnHandIterator inventDimOnHandIterator; InventDimOnHandMember inventDimOnHandMember; InventDim inventDim; InventDim inventDimCriteria; InventDimParm inventDimParmCriteria; // … Continue reading D365FFO – AX – X++ – Query On-Hand inventory using specific inventory-dimensions