Share via


BOMCreate.promptCreateBOM Method [AX 2012]

Prompts the user for the BOM creation options and performs the actual BOM creation.

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 container promptCreateBOM(
            ItemId _itemId, 
           [BOMId _fromBOMId, 
            InventSiteId _fromSiteId, 
            boolean _pmfIsFormula])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public container promptCreateBOM(
            ItemId _itemId, 
           [BOMId _fromBOMId, 
            InventSiteId _fromSiteId, 
            boolean _pmfIsFormula])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public container promptCreateBOM(
            ItemId _itemId, 
           [BOMId _fromBOMId, 
            InventSiteId _fromSiteId, 
            boolean _pmfIsFormula])

  Microsoft Dynamics AX 2012 (FPK)
          public container promptCreateBOM(
            ItemId _itemId, 
           [BOMId _fromBOMId, 
            InventSiteId _fromSiteId])

  Microsoft Dynamics AX 2012 (SYS)
          public container promptCreateBOM(
            ItemId _itemId, 
           [BOMId _fromBOMId, 
            InventSiteId _fromSiteId])

Run On

Server

Parameters

  • _pmfIsFormula
    Type: boolean
    The new item is a formula.

Return Value

Type: container
A container that contains the created BOM ID and site ID.

Exceptions

Exception Condition
Error

An error has occurred when the BOM was created.

UpdateConflictNotRecovered

There is an update conflict detected and was not recovered.

UpdateConflict

An update conflict was detected.

See Also

Reference

BOMCreate Class