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
- _itemId
Type: ItemId Extended Data Type
The item ID for which the BOM is created.
- _fromBOMId
Type: BOMId Extended Data Type
The BOM ID to use as a source for copying BOM data; optional.
- _fromSiteId
Type: InventSiteId Extended Data Type
The site ID to use as a source for copying BOM data; optional.
- _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. |