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> Operationssearch224_out.write( "Is active [T/F] (default is T): " );String upcomingStr = _out.readLn();if ( "T".Equals( upcomingStr.ToUpper() ) || "".Equals( upcomingStr.ToUpper() ) ){isActive.searchValue = true;isActive.searchValueSpecified = true;break;}else if ( upcomingStr.ToUpper().Equals( "F" ) ){isActive.searchValue = false;isActive.searchValueSpecified = true;break;}else{_out.writeLn( "Invalid selection" );}}custSearch.active = isActive;*/if ( custSearch.entityId == null && custSearch.stage == null ){_out.info( "\nNo search criteria was specified. Searching for all records." );}else{_out.info("\nSearching for customers with the following criteria: " +(entityId==null ? "" : ("\nentityID=" + custSearch.entityId.searchValue) + ",Operator=" + entityId.@operator.ToString()) +(stage==null ? "" : ("\nstage nsKeys='" + stageKeysValue + "',Operator=" + stage.@operator.ToString())) );}// Invoke search() web services operationSearchResult response = _service.search( custSearch );// Process responseif ( response.status.isSuccess ){// Process the records returned in the response and print to consoleprocessCustomerSearchResponse( response );}}else{}// Since pagination controls what is returned, check to see// if there are anymore pages to retrieve.searchMore( response );_out.error( getStatusDetails( response.status ) );<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!