Get and copy values from a record
Hello everyone I’m new to suitescript,
How do I get all the values from a record and copy it to another unfilled record?
This is my code:
function afterSubmit(context){
var registroDataEntrega = context.record.get({
fieldId = ‘custbody26’
});
var registroDataFluxo = context.record.get({
fieldId = ‘custrecord_gf_data_prevista’
});
if(registroDataFluxo.value == ” && registroDataEntrega != ” ){
}
}
Jai
Use nlapiCopyRecord api
NiceGuy240
But this code snippet is from version 1.0, correct? Wouldn’t that cause a conflict?
thank you anyway