var promotion = nlapiCreateRecord('promotioncode',...
# suitescript
u
var promotion = nlapiCreateRecord('promotioncode', {recordmode:'dynamic'})