RE: 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;



Sharath Rookie Asked on October 29, 2019 in SuiteScript.
Add Comment
2 Answers

Try this:

var lineCount = context.request.getLineCount(‘sublistid’)

Beginner Answered on October 29, 2019.
Add Comment

Your Answer

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