Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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;