AfterSubmit Suitescript 1.0


Hi Everyone,

nlapiSetFieldValue can also use in aftersbumit session? I tried to log the value of variable and it has a value but after set it to field and log it no value after submit record.

Anyone has idea how to use nlapiSetFieldValue in after submit record. Thank you

Rookie Asked on February 18, 2022 in SuiteScript.
Add Comment
1 Answer(s)
Best answer

If you really need to change the value of a field in the afterSubmit you need to load and save the record. nlapiSetFieldValue  is not going to fail but it’s not going to change the record.

That being said, it’s preferable to change fields of the current record in the beforeSubmit because you don’t need to load/save the record, nlapiSetFieldValue  should work there. (of course this is not always possible)

Rookie Answered on February 18, 2022.
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   Limebox   Become a Sponsor   Become a Sponsor