Aaron McCausland
05/28/2026, 3:25 PMCeligo AI
05/28/2026, 3:26 PMAI generated answer (using internal Slack threads):To authenticate N/https.get() so that it retrieves a NetSuite record page's HTML instead of a NetSuite login page, you need to understand that the Map/Reduce script does not have the login session, so it can't access internal NetSuite pages directly. However, you can use a workaround by creating a Suitelet or Restlet that has the required permissions to access the page. Then, you can call this Suitelet or Restlet from your Map/Reduce script. Here is a sample code snippet on how to call a Suitelet from a Map/Reduce script:
javascript
var suiteletURL = url.resolveScript({
scriptId: 'customscript_suiteletid',
deploymentId: 'customdeploy_deploymentid',
returnExternalUrl: true
});
var response = https.get({
url: suiteletURL,
headers: { "Content-Type": "application/json" }
});
In the above code, replace 'customscript_suiteletid' and 'customdeploy_deploymentid' with your Suitelet's script ID and deployment ID respectively.
Please note that this is a workaround and may not be the best practice for all use cases. Always ensure that your Suitelet or Restlet has the necessary permissions and is secure.
******
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
05/28/2026, 3:26 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829528809
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829040527
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828857422
Celigo AI
05/28/2026, 3:26 PMCeligo AI
05/28/2026, 3:34 PMAaron McCausland
05/28/2026, 3:35 PM