RE: Error in sublist set value displaying custom body field


var dnote = result.getValue(result.columns[3]); // from custom body field

id : ‘colnotes’,
line : i,
value : dnote

// the browser gives me an error
//Missing a required argument: options.value”,”stack”:[“createError(N/error)”,
//”message”:”Sublist.setSublistValue: Missing a required argument: options.value”},”id”:””,”notifyOff”:false,”userFacing”:true}

ian_val Rookie Asked on August 25, 2021 in SuiteScript.
Add Comment
2 Answers

is the correct option for the serverWidget.Sublist api.  Seems to fail like this on an empty string. Seems like a bug — treating empty string as undefined here.  if you believe it is a bug then you could catch this error and in the catch test if you are setting empty string — if you are not then re-throw the error.  That way if it is a bug or not and they fix it or not then you’re insulated.

Rookie Answered on October 17, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.