Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
Allow searches to start on an ID other than zero
Browse files Browse the repository at this point in the history
Some NetSuite objects have negative internal IDs. Without passing a
negative :start_id, the search starts at zero and cannot be overridden.

This is a temporary fix until we determine how to best support this
feature as well as result batching.
  • Loading branch information
bradediger committed Nov 19, 2013
1 parent b7bc39b commit 6e54257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/netsuite-rest-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def search_records(record_type, search_filters, return_columns, options={})

payload = { 'operation' => 'SEARCH',
'record_type' => record_type,
'start_id' => 0,
'start_id' => options.fetch(:start_id, 0),
'search_filters' => search_filters,
'return_columns' => return_columns }

Expand Down

0 comments on commit 6e54257

Please sign in to comment.