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}

Rookie Asked on August 25, 2021 in SuiteScript.
Add Comment
2 Answer(s)

Please look into sublist API:  I don’t seem to find a sublist ID, field ID mentioned accurately.

    sublistId: 'item',
    fieldId: 'item',
    line: 3,
    value: true
Beginner Answered on August 25, 2021.
Add Comment

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.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor