Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
Trying to match a Netsuite search export count to rest api query count
Hi,
I am trying to match a netsuite search export to rest api query in postman
The netsuite report export finds 29 Records
the REST API query funds 40 Records
I can't figure out why the rest api has more?
Company added a special text field to the transactionline table called 'custcol1'. This is the main field I search on.
postman query:
{ "q": "SELECT * FROM transactionline tl where tl.custcol1 IS NOT NULL"}
finds 40 results
more complex still finds 40 records
{ "q": "SELECT * FROM transaction t LEFT JOIN transactionline tl ON t.id = tl.transaction LEFT JOIN subsidiary s ON tl.subsidiary = s.id where tl.custcol1 IS NOT NULL and t.type IS NOT NULL and s.name = 'MyCo' and t.trandate >= '11/1/2021' and t.trandate < '12/31/2021'"