let suiteletUrl = url.resolveScript({
scriptId: ‘customscript_jj_sl_ctr_task_crt’, // Your Suitelet script ID
deploymentId: ‘customdeploy_jj_sl_ctr_task_ctrt’, // Your Suitelet deployment ID
returnExternalUrl: false
}) + ‘&caseRecordId=’ + encodeURIComponent(caseRecordId) + ‘&isResubmission=’ + encodeURIComponent(isResubmission)
console.log(‘suiteletUrl’, suiteletUrl)
fetch(suiteletUrl);
The suitelet will be trigger in the backgroud using the Fetch command