Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. 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'"