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;
log.error(‘sublist1’,sublist1);

 

 

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

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’});`

Beginner Answered on October 29, 2019.
Add Comment

Your Answer

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