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 != ” ){


Rookie Asked on July 23, 2021 in SuiteScript.

Use nlapiCopyRecord api

on July 25, 2021.

But this code snippet is from version 1.0, correct? Wouldn’t that cause a conflict?

thank you anyway

on July 26, 2021.
Add Comment
1 Answer(s)

Use nlapiCopyRecord api

Beginner Answered on July 25, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor