Friday, March 1, 2019

Adding, Editing or Deleting Item Lines on Parameter sublist using SuiteScript throw SSS_INVALID_SUBLIST_OPERATION error

Running the following code snippet below on script debugger will throw a  SSS_INVALID_SUBLIST_OPERATION:

var script = nlapiLoadRecord('script',64, {recordmode:'dynamic'});
script.selectNewLineItem('parameters');
script.setCurrentLineItemValue('parameters', 'label','Text Param'); 

An error is thrown because parameter sublist is not an inline editing. Adding, editing or deleting operations on non inline editing sublist is not supported.

No comments:

Post a Comment