Hello
Need some help
Anyone know a script that could populate the promocode field with a custom field from the customer record?
It's probably really easy but I **** at scripting. If anyone can help that would rock. It will also add to you karma.
I was thinking:
function set_promocode()
{
if (!nlapiGetFieldValue('promocode'))
{
nlapiSetFieldValue('promocode', 'custentitypromocode');
}
}
but it ain't quite working...