Skip to content

Commit

Permalink
Adding pagination docs
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Sep 20, 2013
1 parent 28b9494 commit f851d51
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,27 @@ search = NetSuite::Records::Transaction.search({
}
})

# basic search with pagination / SearchMorewithId
search = NetSuite::Records::Customer.search(
criteria: {
basic: [
{
# no operator for booleans
field: 'isInactive',
value: false,
},
]
},

preferences: {
page_size: 10,
}
)

search.results_in_batches do |batch|
puts batch.map(&:internal_id)
end

```


Expand Down

0 comments on commit f851d51

Please sign in to comment.