Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Retrieving support case messages
Hello,
I'm trying to extract support cases and their associated messages via NetSuite web services. I can successfully select the support case header information but I am having difficulty getting case messages. I use the following code to get the SupportCase objects:
public List findByCustomer(String customerId) throws NetSuiteException { SearchMultiSelectField customerJobEntity = new SearchMultiSelectField(); customerJobEntity.setOperator(SearchMultiSelectFieldOperator.anyOf); RecordRef customerJobRef = new RecordRef(); customerJobRef.setInternalId(customerId); RecordRef[] customerJobRecordRefArray = new RecordRef[1]; customerJobRecordRefArray[0] = customerJobRef; customerJobEntity.setSearchValue(customerJobRecordRefArray); CustomerSearchBasic customerSearchBasic = new CustomerSearchBasic(); customerSearchBasic.setInternalId(customerJobEntity); SupportCaseSearch supportCaseSearch = new SupportCaseSearch(); supportCaseSearch.setCustomerJoin(customerSearchBasic); // runSearch }Then for each SupportCase object, I get its caseNumber and supplying it to the following:
0