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> OperationsdeleteList137C#private void deleteCustomerList(){// This operation requires a valid sessionthis.login( true );// Prompt for list of nsKeys and put in an array_out.write( "\nEnter nsKeys for customer records to be deleted (separated by commas): " );String reqKeys = _out.readLn();string [] nsKeys = reqKeys.Split( new Char[] {','} );// First get the records from NS_out.write( "\nChecking validity of nsKeys by using getList() to retrieve records ...\n" );int numRecords = getCustomerList( nsKeys, true );// Delete records, but only if there are records to deleteif ( numRecords > 0 ){// Build an array of RecordRef objectsRecordRef[] recordRefs = new RecordRef[ nsKeys.Length ];for (int i=0; i

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

Saved successfully!

Ooh no, something went wrong!