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.
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){