@battk I tried using the setSublistText but it gives me an error -
{"type":"error.SuiteScriptError","name":"INVALID_FLD_VALUE","message":"You have entered an Invalid Field Value 25167 for the following field: item","stack":["anonymous(N/serverRecordService)
This is the code that I wrote:
rec.setSublistText({
sublistId: 'item',
fieldId: 'rate',
//value: '20%',
text: '20%',
//ignoreFieldChange: true,
line: lineCount
});
Can you let me know where I am going wrong?