SalesLine.createAlternativeItem Method [AX 2012]

Replaces the current item with an alternative item if an alternative item has been set up.

public boolean createAlternativeItem(InventDim _inventDim, SalesLine _newlyCreatedSalesLine)

Run On



Type: InventDim Table
A buffer of the InventDim table.
Type: SalesLine Table
A buffer of the SalesLine table.

Return Value

Type: boolean
false if the current item has a alternative item setup; otherwise, true.

The user will be prompted for permission to use the alternative item.