Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
INVALID_FLD_VALUE for case/task/event in time record
Hi,
I am creating timesheet records through the user event script but in the script throw invalid field value project task but is closed.
var timeRecord= record.create({type:'timebill',isDynamic: true});
if(employee!=''&&employee!=null){
timeRecord.setValue({fieldId: 'employee',value:employee});}
if(travetime!=''&&travetime!=null){
timeRecord.setValue({fieldId: 'hours',value:travetime});}
if(trandate!=''&&trandate!=null){
timeRecord.setValue({fieldId: 'trandate',value:trandate});}
if(loc!=''&&loc!=null){
timeRecord.setValue({fieldId: 'location',value:loc});}
if(customer!=''&&customer!=null){
timeRecord.setValue({fieldId: 'customer',value:customer});}
if(cls!=''&&cls!=null){
timeRecord.setValue({fieldId: 'class',value:cls});}
if(casetask!=''||casetask!=null){