NetFlex Web Services
Along with NetSuite Version 11.0.4 is the release of NetFlex Web Services Version 2.5.0. This release completes parity with smbXML such that all records previously supported in smbXML can now be handled via Web services. Refer to the following sections for details on all updates:
*
*
*
*
*
 
Important: If upgrading from older endpoints to the new 2.5 endpoint, ensure that you note field renames, type changes and other backwards incompatible changes as detailed in these release notes.
New Operations
getDeleted
The new getDeleted operation can be used to retrieve a list of deleted records of a given type during a specified period. This operation is useful in order to easily synchronize information in a client application to the data currently in NetSuite.
For example, an Outlook client application plugin maintains a list of contacts and synchronizes that list with NetSuite. The getDeleted operation can be used to determine contact deletions since the last synchronization with NetSuite.
initialize
The new initialize operation can be used to emulate the UI workflow by prepopulating fields on transaction line items with values from a related record. Your Web services application can then modify only the values it needs to before submitting a record.
For example, in the UI clicking Bill from a Sales Order record loads an Invoice record where fields are populated with values from the Sales Order. When loading an invoice record in Web services, you can reference the related Sales Order record to initialize fields with values from that sales order.
Other Platform Changes
ExternalID References
You can now assign an externalID attribute to a record and then provide either the externalID or internalID when referencing that record. The externalID attribute of a recordRef provides a means to reference an object by its foreign key in an external database. This is useful in order to maintain client ID relationships and for establishing relationships between two different record types with a single API call.
Per Line Taxes on Transactions
The Sales Tax Item machine is now exposed, allowing a client to set taxes on per line item on a transaction. Additionally, the Tax Code and Tax Group records have been exposed.
replaceAll Attribute Update
The replaceAll attribute on lists has been updated in order to allow you to add or update a subset of items in a list without having to resubmit the entire list.
This is only true for Keyed lists such as transaction line items. Items are added to the existing list when replaceAll is set to FALSE, and a list of new items is sent in the request. Items in a list are updated when replaceAll is set to FALSE and the Line Id is set for the items in the request. The default setting for the replaceAll attribute remains as TRUE.
Previously, the replaceAll attribute always behaved as if it were TRUE regardless of the setting.
New Records
The following records have been exposed in Version 2.5.0:
 
Cash Refund
Lot Numbered Inventory Item
Solution
Cash Sale
Partner
Topic
Credit Memo
Purchase Order
Track Time
Customer Payment
Return Authorization
Vendor
Customer Refund
Sales Tax Item
Vendor Bills
Estimate/Quote
Serialized Inventory Item
 
Invoice
Site Category
 
Type Changes
The following types have been renamed or removed as described. New types are not listed here.
Changed Types
*
CustomerEmailPreference > EmailPreference
*
Country > removed _unitedKingdom enumeration
*
ItemFulfillmentStatus > removed
Schema Changes
The following table lists changes in the schema that correspond to previously exposed records. Any changes related to newly exposed records are not listed here. Please refer to the Web Services Records Guide for a complete list of available fields and types associated with new records.
 
Note: In addition to the changes detailed below, the externalID attribute has been added to records and search records.
 
Record
Changed Fields /
Removed Fields
New Fields /
Joined Searches
Type Changes
Check
*Added: billPay
 
 
CheckExpense
Changed:
expAccount > account
expAmount > amount
expCategory > category
expClass > class
expCustomer > customer
expDepartment > department
expIsBillable > isBillable
expLocation > location
expMemo > memo
Added:
*customFieldList
*line
*TaxCode
*taxRate1
*TaxRate2
 
 
CheckItem
*Added: line
 
 
ContactAddressBook
*Added: override
 
 
Customer
*openingBalance > openingBalanceAccount
 
 
CustomerPayment
*Added: arAcct
 
 
Employees
*Added: override
 
 
InventoryItem
Added:
*maxDonationAmount
*relatedItemsDescription
 
 
Location
*Removed: isOffice
*Added: override
 
 
NonInventoryResaleItem
Added:
*maxDonationAmount
*relatedItemsDescription
 
 
NonInventorySaleItem
Added:
*maxDonationAmount
*relatedItemsDescription
 
 
OpportunityItem
*Added: line
 
 
SalesOrder
Added:
*shippingTax1Rate
*shippingTaxCode
*handlingTax1Rate
*handlingTaxCode
ccAvsStreetMatch:
tranSalesTyp:SalesOrderCcAvsStreetMatch > tranSalesTyp:AvsMatchCode
ccAvsZipMatch:
tranSalesTyp:SalesOrderCcAvsZipMatch > tranSalesTyp:AvsMatchCode
ccSecurityCodeMatch:
tranSalesTyp:SalesOrderCcSecurityCodeMatch > tranSalesTyp:AvsMatchCode
issueNo > debitCardIssueNo
 
TransactionStatus:
added many new enumerations
ServiceResaleItem
Added:
*maxDonationAmount
*relatedItemsDescription
 
 
ServiceSaleItem
Added:
*maxDonationAmount
*relatedItemsDescription
 
 
SupportCase
 
solutionsList:
all fields
 
TransactionSearchBasic
 
billingSchedule
commit
createdFrom