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.
- _merchandisingEventID
Type: MCRMerchandisingEventID Extended Data Type
The merchandising event ID to set on the promotion item.
Return Value
Type: boolean
true if no errors occured; otherwise, false.