Aaron McCausland
06/25/2025, 11:05 PMCeligo AI
06/25/2025, 11:05 PMAI generated answer (using internal Slack threads):The error
TypeError: dataset.loadDataset is not a function
is typically thrown when you're trying to use a method that doesn't exist on the dataset
object. In NetSuite, the dataset
object does not have a method called loadDataset
.
If you're trying to load a dataset, you should be using the query
module, not the dataset
module. The query
module has a load
method which can be used to load a saved query. Here's an example:
javascript
var query = require('N/query');
var myQuery = query.load({
id: 'customquery_my_query'
});
In this example, customquery_my_query
is the script ID of the saved query you're trying to load. Make sure to replace it with the actual script ID of your saved query.
If you're still having issues, please double-check your script ID and make sure you're using the correct module and method. If you're not sure, you can always check the NetSuite Help Center for more information on the query
module and its methods.
******
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
06/25/2025, 11:05 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822491467
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.815192461
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.803935885
Celigo AI
06/25/2025, 11:05 PM