BOMHierarchy.itemPartOf Method [AX 2012]
Traverses up the 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 itemPartOf(
ItemId _itemId,
[EcoResItemConfigurationName _configId,
Level _maxLevels,
TransDate _fromDate,
TransDate _toDate,
InventSiteId _siteId])
Microsoft Dynamics AX 2012 R2 (SYS)
public boolean itemPartOf(
ItemId _itemId,
[EcoResItemConfigurationName _configId,
Level _maxLevels,
TransDate _fromDate,
TransDate _toDate,
InventSiteId _siteId])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
public boolean itemPartOf(
ItemId _itemId,
[EcoResItemConfigurationName _configId,
Level _maxLevels,
TransDate _fromDate,
TransDate _toDate])
Microsoft Dynamics AX 2012 (FPK)
public boolean itemPartOf(
ItemId _itemId,
[EcoResItemConfigurationName _configId,
Level _maxLevels,
TransDate _fromDate,
TransDate _toDate])
Microsoft Dynamics AX 2012 (SYS)
public boolean itemPartOf(
ItemId _itemId,
[EcoResItemConfigurationName _configId,
Level _maxLevels,
TransDate _fromDate,
TransDate _toDate])
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.
- _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 configuration ID that is provided is not allowed for the item. |