Recherche…


Créer une nouvelle tâche

var record = nlapiCreateRecord('task');
record.setFieldValue('title', taskTitle);
var id = nlapiSubmitRecord(record, true);

Créer un enregistrement en mode dynamique

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', email); record.setFieldValue ('custrecord_location', loc); record.setFieldValue ('custrecord_incidentdate', date d'incident); record.setFieldValue ('custrecord_issuedescription', desc); // record.setFieldValue ('custrecord_reportedby', rapport); record.setFieldValue ('custrecord_issuetype', issuetype); record.setFieldValue ('custrecord_priority', priority); // record.setFieldValue ('custrecord_replacement fourniture', repl); record.setFieldValue ('custrecord_issuestatus', issuestatus); // record.setFieldValue ('custrecord_resolvedby', résolu par); record.setFieldValue ('custrecord_remarks', remarques); record.setFieldValue ('custrecord_resolvedby', résolu par); record.setFieldValue ('custrecord_updatedstatus', updatedstatus); var id = nlapiSubmitRecord (enregistrement, true); var recordId = nlapiGetRecordId (); record = nlapiLoadRecord ('customrecord_ennveeitissuetracker', id);



Modified text is an extract of the original Stack Overflow Documentation
Sous licence CC BY-SA 3.0
Non affilié à Stack Overflow