The suitelet can be called from user event using the modules N/url and N/https. But in the user event, suitelet cannot be called using its internal url in the afterSubmit. The suitelet can be called using the external url which is as follows:
let suiteletCall = url.resolveScript({
scriptId: "customscript_jj_sl_render_pdf_dvtb343",
deploymentId: "customdeploy_jj_sl_render_pdf_dvtb343",
params: {
"id": JSON.stringify(id)
},
returnExternalUrl: true
});
https.get({ url: suiteletCall });
However, internal url cookie can be retrived in the beforeload and then passed to the afterSubmit to call the suitelet.