BOMHierarchy.itemConsistOf Method [AX 2012]
Traverses down the bill of materials (BOM) structure and determines whether it is valid.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
public boolean itemConsistOf(
ItemId _itemId,
[EcoResItemConfigurationName _configId,
Level _maxLevels,
TransDate _fromDate,
TransDate _toDate,
boolean _selectConfig,
BOMId _itemBOMId,
InventSiteId _siteId])
Microsoft Dynamics AX 2012 R2 (SYS)
public boolean itemConsistOf(
ItemId _itemId,
[EcoResItemConfigurationName _configId,
Level _maxLevels,
TransDate _fromDate,
TransDate _toDate,
boolean _selectConfig,
BOMId _itemBOMId,
InventSiteId _siteId])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
public boolean itemConsistOf(
ItemId _itemId,
[EcoResItemConfigurationName _configId,
Level _maxLevels,
TransDate _fromDate,
TransDate _toDate,
boolean _selectConfig,
BOMId _itemBOMId])
Microsoft Dynamics AX 2012 (FPK)
public boolean itemConsistOf(
ItemId _itemId,
[EcoResItemConfigurationName _configId,
Level _maxLevels,
TransDate _fromDate,
TransDate _toDate,
boolean _selectConfig,
BOMId _itemBOMId])
Microsoft Dynamics AX 2012 (SYS)
public boolean itemConsistOf(
ItemId _itemId,
[EcoResItemConfigurationName _configId,
Level _maxLevels,
TransDate _fromDate,
TransDate _toDate,
boolean _selectConfig,
BOMId _itemBOMId])
Run On
Server
Parameters
- _itemId
Type: ItemId Extended Data Type
The ID of the item to start from.
- _configId
Type: EcoResItemConfigurationName Extended Data Type
The configuration to limit selection to; optional.
- _maxLevels
Type: Level Extended Data Type
The maximum number of levels that can be traversed; optional.
- _fromDate
Type: TransDate Extended Data Type
The date from which to search for versions; optional.
- _toDate
Type: TransDate Extended Data Type
The date to which to search for versions; optional.
- _selectConfig
Type: boolean
A Boolean value that determines whether the configuration should be determined based on the configuration group; optional.
- _itemBOMId
Type: BOMId Extended Data Type
The ID of the BOM to start from; optional.
- _siteId
Type: InventSiteId Extended Data Type
The ID of the site that the search will be limited to if the site filter has been enabled; optional.
Return Value
Type: boolean
true if the structure is valid; otherwise, false.
Exceptions
Exception | Condition |
---|---|
Error | The item parameter references a non-existing item. –or– The item is not allowed to have a BOM or a formula. –or– The configuration ID that is provided is not allowed for the item. |