Share via


CatCartLine::createDistinctProductLine Method

Creates a new line with a reference to the specified product.

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
          client server public static CatCartLine createDistinctProductLine(
            CompanyId _operationsDataAreaId, 
            RefRecId _distinctProductRefRecId, 
            PurchQty _qty, 
           [VendAccount _vendAccount, 
            RefRecId _unitID, 
            ItemId _itemId, 
            InventDimId _inventDimId, 
            CurrencyCode _currency])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static CatCartLine createDistinctProductLine(
            CompanyId _operationsDataAreaId, 
            RefRecId _distinctProductRefRecId, 
            PurchQty _qty, 
           [VendAccount _vendAccount, 
            RefRecId _unitID, 
            ItemId _itemId, 
            InventDimId _inventDimId])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static CatCartLine createDistinctProductLine(
            DataAreaId _dataAreaId, 
            RefRecId _distinctProductRefRecId, 
            PurchQty _qty, 
           [VendAccount _vendAccount, 
            RefRecId _unitID, 
            ItemId _itemId, 
            InventDimId _inventDimId])

  Microsoft Dynamics AX 2012 (FPK)
          client server public static CatCartLine createDistinctProductLine(
            DataAreaId _dataAreaId, 
            RefRecId _distinctProductRefRecId, 
            PurchQty _qty, 
           [VendAccount _vendAccount, 
            RefRecId _unitID, 
            ItemId _itemId, 
            InventDimId _inventDimId])

  Microsoft Dynamics AX 2012 (SYS)
          client server public static CatCartLine createDistinctProductLine(
            DataAreaId _dataAreaId, 
            RefRecId _distinctProductRefRecId, 
            PurchQty _qty, 
           [VendAccount _vendAccount, 
            RefRecId _unitID, 
            ItemId _itemId, 
            InventDimId _inventDimId])

Run On

Called

Parameters

  • _itemId
    Type: ItemId Extended Data Type
    The ItemId Value of the InventTable.
    Optional.
    If not supplied, it would be calculated using data of the given line.
    If supplied, caller must ensure it matches the line data.
  • _inventDimId
    Type: InventDimId Extended Data Type
    The InventDimId matching the trade agreement ( PriceDiscTable ) based on the user's choice of vendor and dimension (color, size, config).
    If there is no PriceDiscTable , then this should match the InventDimCombination instead.
    Optional.
    If not supplied, it would be calculated using data of the given line.
    If supplied, caller must ensure it matches the line data.

Return Value

Type: CatCartLine Table
The new record of the CatCartLine table.

See Also

Reference

CatCartLine Table