Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Client SuiteScript on line item throws NULL
Hi,
I have a client suite script that collects informations of three different item fields and should place them together in one column field on a transaction after entering an the item. I chose validateLine to place the action and the script looks like this:
______________________________
function validateLine(type)
{
// Only validate the 'item' sublist
if (type == 'item')
{
var valueA = nlapiGetCurrentLineItemValue('item', 'custitemharmonized');
var valueB = nlapiGetCurrentLineItemValue('item', 'custitem29');
var result = valueA + '\n' + valueB;
nlapiSetCurrentLineItemValue('item', 'custcol34', result);
}
return true;
}
______________________________
After entering an item and adding the line I get just this on my column field:
NULL
NULL
Any Idea what I'm doing wrong?