Share via


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

  • _selectConfig
    Type: boolean
    A Boolean value that determines whether the configuration should be determined based on the configuration group; 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.

See Also

Reference

BOMHierarchy Class