Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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'"