Discussions
Please Share
I need to reset a custentity field on employee records at the end of every company year and i'm wondering how to go about it. I've tried going through search, was able to get the field in a container. However i haven't been able to reset the field using nlapiSetFieldValue function.below is a sample of my code. Pls, if anybody has a better way of doing this or could decipher what's wrong on the script, just share. thanx
var columns= new Array();
columns[0]= new nlobjSearchColumn('internalid')
columns[1]= new nlobjSearchColumn('custentity_jobnumber')
var searchresults = nlapiSearchRecord( 'employee',null, null, columns );
jobnumber=" ";