Isaac Rumbold
11/21/2024, 7:34 PMCeligo AI
11/21/2024, 7:46 PMAI generated answer (using internal Slack threads):Yes, you can reference a SuiteQL in a SuiteScript. SuiteQL is a powerful tool within NetSuite that allows you to perform ad-hoc joins and complex queries that might not be possible with traditional N/search. It is a layer on top of Oracle SQL and is read-only. Here is an example of how you can use SuiteQL within SuiteScript:
javascript
var suiteQL = "SELECT * FROM transaction WHERE entity = 123";
var result = N/query.runSuiteQL({query: suiteQL});N/query.runSuiteQLresultCeligo AI
11/21/2024, 7:46 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.811644077
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.811490774
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.811288
Celigo AI
11/21/2024, 7:46 PM