Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
SalesOrder itemList WSDL v2.5 vs v2.6
NetSuite Case: 630935
Below is a snippet of vb.net code which works using WSDL v2.5 but does NOT work with WSDL v2.6.
Dim tranSearch As TransactionSearch = New TransactionSearch() tranSearch.basic = New TransactionSearchBasic() Dim TranId As SearchStringField = New SearchStringField() TranId.operator = SearchStringFieldOperator.is TranId.operatorSpecified = True TranId.searchValue = "18086" 'Sales Order Number tranSearch.basic.tranId = TranId Dim tranSearchResult As SearchResult Dim prefs As New SearchPreferences() _nsService.searchPreferences = prefs _nsService.searchPreferences.bodyFieldsOnly = False _nsService.searchPreferences.pageSize = 1000 _nsService.searchPreferences.pageSizeSpecified = True Try tranSearchResult = _nsService.search(tranSearch) ' Call the search webservice Catch ex As Exception MsgBox(ex.Message & ex.StackTrace) Finally End Try If tranSearchResult Is Nothing _ Or _nsService.extResponseOK(tranSearchResult) = False _ Or tranSearchResult.recordList.Length <> 1 _ Then 'Error code here Else Dim tempTran As SalesOrder = DirectCast(tranSearchResult.recordList(0),
0