netsuite
레코드 만들기
수색…
새 작업 만들기
var record = nlapiCreateRecord('task');
record.setFieldValue('title', taskTitle);
var id = nlapiSubmitRecord(record, true);
동적 모드에서 레코드 만들기
var record = nlapiCreateRecord ( 'customrecord_ennveeitissuetracker', {recordmode : 'dynamic'}); nlapiLogExecution ( 'DEBUG', 'record', record); record.setFieldValue ( 'custrecord_name1', name); record.setFieldValue ( 'custrecord_empid', id); record.setFieldValue ( 'custrecord_contactno', contactno); record.setFieldValue ( 'custrecord_email', 이메일); record.setFieldValue ( 'custrecord_location', loc); record.setFieldValue ( 'custrecord_incidentdate', incidentdate); record.setFieldValue ( 'custrecord_issuedescription', desc); // record.setFieldValue ( 'custrecord_reportedby', report); record.setFieldValue ( 'custrecord_issuetype', issuetype); record.setFieldValue ( 'custrecord_priority', 우선 순위); // record.setFieldValue ( 'custrecord_replacementprovided', repl); record.setFieldValue ( 'custrecord_issuestatus', issuestatus); // record.setFieldValue ( 'custrecord_resolvedby', resolvedby); record.setFieldValue ( 'custrecord_remarks', 비고); record.setFieldValue ( 'custrecord_resolvedby', 해결 된); record.setFieldValue ( 'custrecord_updatedstatus', updatedstatus); var id = nlapiSubmitRecord (record, true); var recordId = nlapiGetRecordId (); record = nlapiLoadRecord ( 'customrecord_ennveeitissuetracker', id);