KM
07/07/2026, 2:58 AMCeligo AI
07/07/2026, 2:58 AMAI generated answer (using internal Slack threads):In SuiteQL, you can use the IN operator in a query like this:
sql
SELECT * FROM table WHERE column IN ('value1', 'value2', ..., 'valueN')
The limit for the array used in the IN clause is 1000 items. This means you can have up to 1000 values inside the parentheses.
As for the comparison between using IN and chained ORs, it can vary depending on the specific use case. Some users have found the IN clause to be faster, while others have found chained ORs to be faster. It's recommended to test both methods in your specific scenario to see which performs better.
Regarding the usage of SuiteQL in SuiteScript, the usage limit is not directly related to the size of the query, but rather the number of results returned. If you're using methods like runPaged() and .fetch, the number of results matters. The same idea likely applies to SuiteQL queries.
As for the runSuiteQL.query method, there isn't a direct LIMIT clause. However, you can use SELECT TOP 5 or WHERE ROWNUM <= 5 to limit the number of results returned. Note that combining ORDER and TOP requires a nested query.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
07/07/2026, 2:58 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.809936583
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.803710938
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.801391602
Celigo AI
07/07/2026, 2:58 AM