InventAvailabilityProvider::findBySumDim Method [AX 2012]
Finds availability based on the specified InventSum and the dimensions that were used as a filter to find this record.
Syntax
client server public static InventAvailabilityByUnit findBySumDim(InventSum _inventSum, InventDim _inventDimCriteria)
Run On
Called
Parameters
- _inventSum
Type: InventSum Table
The InventSum record that contains on hand information for the specified dimension criteria.
- _inventDimCriteria
Type: InventDim Table
The inventory dimensions of the InventSum record.
Return Value
Type: InventAvailabilityByUnit Class
The InventAvailabilityByUnit object.
Exceptions
Exception | Condition |
---|---|
Error | Throws an error if InventSum.ItemId is blank. |
Remarks
Non-empty dimension values from the dimension criteria will be used to filter the availability.
Empty dimensions will be ignored.
Note that it is the responsibility of the user of the API to provide the correct dimensions that were used to find the specified InventSum.