Kevin Baxter
07/11/2023, 1:27 PMcallSuitlet(log, url) {
try {
// call the suitelet
// const suiteletUrl = url.resolveScript({
// scriptId: "customscript1197",
// params: {},
// returnExternalUrl: false,
// });
var suiteletURL = url.resolveScript({
deploymentId: 'customdeploy1',
scriptId: 'customscript1197',
returnExternalUrl: false,
params: {}
});
log.debug("this is something", suiteletURL)
console.log(suiteletUrl);
// load the suitelet in the browser
window.open(suiteletURL);
} catch (e) {
log.error({ title: "error in callSuitelet", details: e });
}
}