because url.resolvescript i am sending in params i...
# suitescript
r
because url.resolvescript i am sending in params it is not logging nor any error in suitelet, in suitelet it is not even logging hard coded values...why?
n
Are you seeing logs in your Suitelet?
var domain = url.resolveDomain({
hostType: url.HostType.APPLICATION,
accountId: runtime.accountId
});
var baseurl = 'https://' + domain;
var scriptRef = url.resolveScript({
scriptId: 'customscript_email_extraction_sl',
deploymentId: 'customdeploy_email_extraction_sl',
returnExternalURL: false
});
var scriptURL = baseurl + scriptRef;
Probably want to do that rather than the hard coded section of your url, but that's more of an observation?
r
no am not now seeing suitelet logs
e
add console.log entries on the client script, and you’ll see this in the browser console (F12)