netsuite
Skapa en post
Sök…
Skapa en ny uppgift
var record = nlapiCreateRecord('task');
record.setFieldValue('title', taskTitle);
var id = nlapiSubmitRecord(record, true);
Skapa post i dynamiskt läge
var record = nlapiCreateRecord ('customrecord_ennveeitissuetracker', {recordmode: 'dynamisk'}); nlapiLogExecution ('DEBUG', 'record', record); record.setFieldValue ('custrecord_name1', namn); record.setFieldValue ('custrecord_empid', id); record.setFieldValue ('custrecord_contactno', contactno); record.setFieldValue ('custrecord_email', e-post); record.setFieldValue ('custrecord_location', loc); record.setFieldValue ('custrecord_incidentdate', incidentdate); record.setFieldValue ('custrecord_issuedescription', desc); // record.setFieldValue ('custrecord_reportedby', rapport); record.setFieldValue ('custrecord_issuetype', issuetype); record.setFieldValue ('custrecord_priority', prioritet); // record.setFieldValue ('custrecord_replacementprovided', repl); record.setFieldValue ('custrecord_issuestatus', issuestatus); // record.setFieldValue ('custrecord_resolvedby', resolvedby); record.setFieldValue ('custrecord_remarks', anmärkningar); record.setFieldValue ('custrecord_resolvedby', resolvedby); record.setFieldValue ('custrecord_updatedstatus', updatedstatus); var id = nlapiSubmitRecord (post, sant); var recordId = nlapiGetRecordId (); post = nlapiLoadRecord ('customrecord_ennveeitissuetracker', id);