let timesheetRecord = record.create({ type: record.Type.TIME_BILL, isDynamic: true }); timesheetRecord.setValue({ fieldId: ’employee’, value: empId }); imesheetRecord.setValue({ fieldId: ‘trandate’, value: formatteddatetime }); timesheetRecord.setValue({ fieldId: ‘customer’, value: taskDetails.companyName }); timesheetRecord.setValue({ fieldId: ‘casetaskevent’, value: taskDetails.internalId }); let timeHours = hours / 60; timesheetRecord.setValue({ fieldId: ‘hours’, value: timeHours }); timesheetRecord.setValue({ fieldId: ‘isbillable’, value: false }); timesheetRecord.setValue({ fieldId: ‘approvalstatus’, value:… Continue reading Create Time Sheet in NetSuite