Share via


TAMPromotionItem::insertTAMPromotionItemFromProduct Method

Inserts a trade promotion item record from the product provided.

Syntax

server public static boolean insertTAMPromotionItemFromProduct(
    container _productContainer, 
    TAMTradePromotion _tamTradePromotion, 
   [boolean _isMerchandisingEvent, 
    MCRMerchandisingEventID _merchandisingEventID])

Run On

Server

Parameters

  • _productContainer
    Type: container
    A container of the products to be inserted into the TAMPromotionItem table.
  • _tamTradePromotion
    Type: TAMTradePromotion Table
    The trade promotion record used to get the promotion ID and customer account.
  • _isMerchandisingEvent
    Type: boolean
    Specifies whether the promotion item record being created is a merchandising event.

Return Value

Type: boolean
true if no errors occured; otherwise, false.

See Also

Reference

TAMPromotionItem Table