10.07.2015 Views

SuiteTalk (Web Services) Platform Guide - NetSuite

SuiteTalk (Web Services) Platform Guide - NetSuite

SuiteTalk (Web Services) Platform Guide - NetSuite

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Web</strong> <strong>Services</strong> Operationssearch219“within” a couple of seconds before the customer was created and then a minute after. Thesearch returns the record that was previously created.JavaCustomer c = (Customer) new TestCustomer().createMinimalRecord();Calendar timeFrom = Calendar.getInstance();WriteResponse wr = sessMgr.getPort().add(c);outputResult(wr.getStatus().isIsSuccess());Calendar timeTo = Calendar.getInstance();timeTo.setTimeInMillis(timeTo.getTimeInMillis() + 60000);CustomerSearch cs = new CustomerSearch();CustomerSearchBasic csb = new CustomerSearchBasic();SearchDateField sdf = new SearchDateField();sdf.setOperator(SearchDateFieldOperator.within);sdf.setSearchValue(timeFrom);sdf.setSearchValue2(timeTo);csb.setLastModifiedDate(sdf);cs.setBasic(csb);SearchResult sr = sessMgr.getWrappedPort().search(cs, this);SOAP2007-02-10T00:16:17.750Z2007-02-10T00:17:53.015ZUnderstanding Sorting in Advanced SearchIn <strong>Web</strong> services, when users return a saved search that has sorting criteria specified in thesaved search, the records are returned according to the specified sorted by order. To see thesorted by criteria that has been applied to a saved search, users can look at the saved searchcriteria in the UI.In an ad-hoc <strong>Web</strong> services search (a search in which sorted by criteria have not been set), usersshould be aware of the implicit sorted by order in which records are returned. This order isbased on record type. Record types and the default sort by order for each record type are listedin the following table:Note: For a list of all records associated with each type, see the section “SupportedRecords” in the <strong>SuiteTalk</strong> (<strong>Web</strong> <strong>Services</strong>) Records <strong>Guide</strong>.<strong>SuiteTalk</strong> <strong>Platform</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!