Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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){