BOMCreate.createNewBom Method [AX 2012]
Creates a new BOM.
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
protected BOMTable createNewBom(
BOMId _bomId,
ItemGroupId _itemGroupId,
InventSiteId _dialogSiteId,
Name _dialogName,
[boolean _pmfIsFormula])
Microsoft Dynamics AX 2012 R2 (SYS)
protected BOMTable createNewBom(
BOMId _bomId,
ItemGroupId _itemGroupId,
InventSiteId _dialogSiteId,
Name _dialogName,
[boolean _pmfIsFormula])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
protected BOMTable createNewBom(
BOMId _bomId,
ItemGroupId _itemGroupId,
InventSiteId _dialogSiteId,
Name _dialogName,
[boolean _pmfIsFormula])
Microsoft Dynamics AX 2012 (FPK)
protected BOMTable createNewBom(
BOMId _bomId,
ItemGroupId _itemGroupId,
InventSiteId _dialogSiteId,
Name _dialogName)
Microsoft Dynamics AX 2012 (SYS)
protected BOMTable createNewBom(
BOMId _bomId,
ItemGroupId _itemGroupId,
InventSiteId _dialogSiteId,
Name _dialogName)
Run On
Server
Parameters
- _bomId
Type: BOMId Extended Data Type
The new BOM ID to be created.
- _itemGroupId
Type: ItemGroupId Extended Data Type
The item group ID to be set on the new BOM.
- _dialogSiteId
Type: InventSiteId Extended Data Type
The site ID to be set on the new BOM.
- _dialogName
Type: Name Extended Data Type
The new BOM name.
- _pmfIsFormula
Type: boolean
A Boolean value that indicates whether the new item is a formula.
Return Value
Type: BOMTable Table
The newly created BOMTable record.
Exceptions
Exception | Condition |
---|---|
Error | The BOM validation failed. |