Very weird, trying a POST now but it also isn't wo...
# suitescript
j
Very weird, trying a POST now but it also isn't working. I've made a thread over at the usergroups so hopefully someone can help https://usergroup.netsuite.com/users/forum/platform-areas/customization/suitescript-2-0-custom-code/425147-https-call-to-suitelet-returning-login-page
n
can you send me your call statement for the url?
j
// Get the domain for the https call var domain = url.resolveDomain({ hostType: url.HostType.APPLICATION }); // Get the URL for the suitelet var csvGenerationUrl = url.resolveScript({ scriptId: 'customscript_neteur002_sl_generatecsv', deploymentId: 'customdeploy_neteur002_sl_generatecsv', params: { contractid : contractId } }); var link = "https://" + domain + csvGenerationUrl; log.debug('link', link); // Http call to suitelet var success = https.get({ url: link });
That's how I'm calling it, sorry for the formatting.
n
i gues. you dont have to put the "https://". call directly https:.get({url:domain+param})
the the url is netsuite.