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
NSC | SuiteQL Query: Reducing Transaction Results by Internal ID
Scenario:
Some NetSuite Accounts contain a very large number of transaction records and are sometimes advised to break the query into smaller results to avoid running into timeouts.
Solution:
Generally, users must call only the columns they need to optimize their query. They may utilize the internal ID along with operators such as less than, greater than, or equal to reduce the results. Here is a sample:
select id, lastmodifieddate, tranid
FROM transaction
WHERE type = 'SalesOrd' AND id < 7000;
This query will only return transaction records whose internal IDs are below 7000. It should be noted that internal IDs usually skip and therefore this does not necessarily mean that the result will return 7000 records.
Expand your NetSuite knowledge by joining this month's Ask A Guru Live: PROCURE TO PAY. RSVP on this event now!
Refer a Member to the Community | Earn the Answer Accepter Badge | Vote for the contents you'd like to see
