How to get Suitelet lineCount from Get Suitelet to Post in Suitescript 2.0
I am trying to get line count from Get Suitelet to Post Suite Suitelet
In 1.0 we use request.getLineItemCount(‘sublist’);
But in 2.0 I am unable to find it.
I tried both but nothing worked.
var sublist1 = request.parameters.getLineCount({
sublistId: ‘customersublist’
});
log.error(‘sublist1’, sublist1);
var sublist1 = request.sublist.lineCount;
log.error(‘sublist1’,sublist1);
I assume @dmashburn3 example will work as well, but here is the link to HelpCenter documentation: (/app/help/helpcenter.nl?fid=section_4567655008.html)
Given the documentation, technically should be passed with group as
`var lineCount = context.request.getLineCount({group : ‘sublistid’});`
Try this:
var lineCount = context.request.getLineCount(‘sublistid’)



