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> Operationssearch226}+ (stage == null ? "" : ("\nstage nsKeys='"+ stageKeysValue + "', Operator=" + stage.getOperator().toString())));}// Set page size for number of records to be returned in search// response// Invoke search() web services operationSearchResult result = _port.search(custSearch);// Process resultif (result.getStatus().isIsSuccess()) {// Process the records returned in the result and print to consoleprocessCustomerSearchResponse(result);// Since pagination controls what is returned, check to see// if there are anymore pages to retrieve.searchMore(result);} else {_console.error(getStatusDetails(result.getStatus()));}Joined Search Code SamplesSample 1This sample shows how to execute a contact search in which the contact email address isspecified as the search criteria.Javapublic void contactSearch_with_CustomerJoin() throws Exception {ContactSearch cs = new ContactSearch();ContactSearchBasic contactSearchBasic = new ContactSearchBasic();contactSearchBasic.setEmail(new SearchStringField("contact@email.com", SearchStringFieldOperator.is));CustomerSearchBasic customerSearchBasic = new CustomerSearchBasic();customerSearchBasic.setEntityId(new SearchStringField("My Customer", SearchStringFieldOperator.is));cs.setBasic(contactSearchBasic);cs.setCustomerJoin(customerSearchBasic);sessMgr.getWrappedPort().search(cs, this);}SOAPcontact@email.com<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!