Here's my NetSuite Surprise of the Day:tm:: I'm po...
# suitescript
j
Here's my NetSuite Surprise of the Day™️: I'm porting an SS1 beforeSubmit user event to SS2. Looks like the record available to SS1 beforeSubmit user events takes dynamic mode functions, but the record passed to SS2 beforeSubmit user events does not. This SS1 user event script adds new lines using
nlapiSelectNewLine
,
nlapiSetCurrentLineItemValue
,
nlapiCommitLineItem
. But when I use the corresponding SS2 functions I get
Cannot find function selectNewLine in object standard record
¯\_(ツ)_/¯