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> OperationsgetDeleted160Sample CodeSOAP RequestlastBusinessWeekcontactC# Sampleprivate void getDeleted(){this.login(true);}GetDeletedFilter fil = new GetDeletedFilter();SearchEnumMultiSelectField type = new SearchEnumMultiSelectField();type.@operator = SearchEnumMultiSelectFieldOperator.anyOf;type.operatorSpecified = true;String[] searchStringArray = new String[1];searchStringArray[0] = "_contact";type.searchValue = searchStringArray;DateTime searchDate = new DateTime();searchDate = DateTime.Now;searchDate = DateTime.Parse(searchDate.ToString("dd/MM/yyyy"));SearchDateField srchdtfldSearchDate = new SearchDateField();srchdtfldSearchDate.searchValueSpecified = true;srchdtfldSearchDate.searchValue = searchDate;srchdtfldSearchDate.operatorSpecified = true;srchdtfldSearchDate.@operator = SearchDateFieldOperator.on;fil.type = type;fil.deletedDate = srchdtfldSearchDate;GetDeletedResult response = _service.getDeleted(fil);Java Samplepublic void getDeleted() throws RemoteException {this.login(true);<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!