jen
05/31/2024, 9:45 PMKris Wood
05/31/2024, 9:46 PMKris Wood
05/31/2024, 9:46 PMKris Wood
05/31/2024, 9:46 PMjen
05/31/2024, 9:47 PMjen
05/31/2024, 9:48 PMjen
05/31/2024, 9:48 PMThen use <http://https.post|https.post> then put your json in the body then the suitelet invoked will put that json data into the runtime session. Key value pair stored is available in server to server only. Then after invoking the first suitelet. You can now call another suitelet then get the key value pair stored in the runtime session.
jen
05/31/2024, 9:49 PMKris Wood
05/31/2024, 9:50 PMjen
05/31/2024, 9:51 PMClay Roper
05/31/2024, 9:53 PMjen
05/31/2024, 9:54 PMbattk
05/31/2024, 9:54 PMClay Roper
05/31/2024, 9:54 PMjen
05/31/2024, 9:54 PMjen
05/31/2024, 9:55 PMjen
05/31/2024, 9:55 PMjen
05/31/2024, 10:15 PMjen
05/31/2024, 10:15 PMlet script_id = 513;
let deployment_id = 1;
let suitelet = url.resolveScript({scriptId: script_id, deploymentId: deployment_id});
// Check if form already exists, if it does, we don't need to add it again, we only need to update the textarea contents.
if(jQuery('#custscript_document_xml').length) {
jQuery('#custscript_document_xml').val(text);
} else {
document.body.innerHTML += `<form id="textxmlform" action="` + suitelet + `" method="post" target="_blank"><textarea id="custscript_document_xml" name="custscript_document_xml">` + text + `</textarea></form>`;
}
jQuery('#textxmlform').submit();