Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
How to have a Suitelet call itself in 2.1
Hello,
Is it possible to have a Suitelet call itself with different parameters?
I did find a SuiteAnswer on this (#72197) so I think I should be able to but I cannot get it to work.
I am using this code the first time I call the Suitelet:
const suiteLetUrl = url.resolveScript({
scriptId: 'customscript_cry_acs_sl_item_update', // changed to CRY version, JudyP 6/18/24
deploymentId: 'customdeploy_cry_acs_sl_item_update',
returnExternalUrl: false,
params: {
'custscript_acs_item_id': newItemId,
'custscript_acs_item_type': newItemType,
'custscript_cry_quantity_change': qtyDiff
}
});
log.debug('Suitelet URL',suiteLetUrl);
https.get({
url: suiteLetUrl
});
Then, in the same Suitelet, I want to call it again for a different Item.
0