Ryan Valizan
01/21/2025, 3:32 PMquery.runSuiteQL
in a map/reduce script would allow for larger data loads than 5,000 results. Doesn’t seem to be working how i thought, as the map method doesn’t have results.
Suggestions? What am I missing?erictgrubaugh
01/21/2025, 3:47 PMrunSuiteQL()
returns a ResultSet
.
getInputData
wants you to return either a Query
object (like that created by query.create()
) or an object of the format
{
type: 'suiteql',
query: 'SELECT id, email FROM Employee WHERE currency = ?',
params: [currency]
}
alien4u
01/21/2025, 4:08 PMquery.runSuiteQL
has a limit of 5000 results, you can use query.runSuiteQLPaged(options)
to handle that.
Please notice that if the NetSuite instance do not have SuiteAnalytics Connect
enabled you will be limited to 100k results.erictgrubaugh
01/21/2025, 4:12 PMgetInputData
in a specific way, which I assumed was the OP's intent here.alien4u
01/21/2025, 4:15 PMgetInputData
because I don't like or use that. But I do trust @erictgrubaugh 100%, so you can try what he is saying.erictgrubaugh
01/21/2025, 4:20 PMRyan Valizan
01/21/2025, 7:41 PMerictgrubaugh
01/21/2025, 7:55 PMerictgrubaugh
01/21/2025, 7:59 PMgetInputData
- the process is opaque, so I don't know exactly how NetSuite does it internally