Get available physical quantity

Without joining the InventSum table you can easily get the available quantity for an item: The parameters for the methods are just the relevants. ItemId Find or create the inventDim for the inventory dimension. If you need to check the quantity on different licenseplates (f.E.) you have to loop through the InventDims:

Active InventDim dimension on ListPage

If you want to check on a list page if a specific inventDim dimension is active and shown on the grid the following code can check that case: (The example checks if the invent batch id is displayed on the grid:   if (element.inventDimSetupObject().parmDimParmVisibleGrid().InventBatchIdFlag) { // Display some new field }