Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
'salesteammember' does not seem to be valid column on sales team sublist ???
Hi-
Here is my code... I have tried about a thousand different guesses for the columns. Anyway, the nlapiGetLineItemValue('salesteam','salesteammember',x) line will always return "null", no matter what...
Any ideas?
var salesteamlines = nlapiGetLineItemCount('salesteam');
var primerep=0;
for ( x = 1 ; x<= salesteamlines ; x++ )
{
var linerep = nlapiGetLineItemValue('salesteam','isprimary',x);
if(linerep=="T")
primerep=nlapiGetLineItemValue('salesteam','salesteammember',x);
};
0