InventAvailabilitySearch::newFromItemIdDim Method [AX 2012]
Creates search criteria based on the specified item ID and dimension criteria.
Syntax
client server public static InventAvailabilitySearch newFromItemIdDim(ItemId _itemId, InventDim _inventDimCriteria)
Run On
Called
Parameters
- _itemId
Type: ItemId Extended Data Type
The ID of the item.
- _inventDimCriteria
Type: InventDim Table
The inventory dimension criteria.
Return Value
Type: InventAvailabilitySearch Class
The InventAvailabilitySearch object.
Exceptions
Exception | Condition |
---|---|
Error | Throws an error if the _itemId is blank. |
Remarks
Non-empty dimension values from the dimension criteria will be used to filter the availability.
Empty dimensions will be ignored.