Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
help..Unable to get item price from specific price level in webservices
We are trying to bring back prices for items associated with a specific price level but are hitting a wall. We can get base price but we cannot access any other price levels that we have set up
ItemSearchBasic isb = new ItemSearchBasic();
RecordRef acctRef = new RecordRef();
acctRef.type = RecordType.account;
acctRef.typeSpecified = true;
acctRef.internalId = "295"; //Summer Camp Income 41600
SearchMultiSelectField acct = new SearchMultiSelectField();
acct.@operator = SearchMultiSelectFieldOperator.anyOf;
acct.operatorSpecified = true;
RecordRef[] acctArray = new RecordRef[1];
acctArray[0] = acctRef;
isb.account = acct;
isb.account.searchValue = acctArray;
GetAllRecord re = new GetAllRecord();
re.recordType = GetAllRecordType.priceLevel;
re.recordTypeSpecified = true;
GetAllResult res = service.getAll(re);
Record[] records = res.recordList;