Share via


BOMHierarchyReport.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

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.

See Also

Reference

BOMHierarchyReport Class