Charan
11/03/2022, 4:02 PMreptar
11/03/2022, 8:31 PMredirect
from the caller.Charan
11/03/2022, 8:52 PMreptar
11/03/2022, 8:58 PMform.addButton()
? If so, add a client script to your suitelet form. Use the CL for button handling. Call to SL post with https.post.promise()
, then use redirect
.Charan
11/08/2022, 10:12 PMCharan
11/09/2022, 11:58 AMbattk
11/09/2022, 1:08 PMCharan
11/09/2022, 1:16 PMCharan
11/09/2022, 1:23 PMbattk
11/09/2022, 1:57 PMbattk
11/09/2022, 2:08 PMbattk
11/09/2022, 2:08 PMCharan
11/09/2022, 4:47 PMCharan
11/09/2022, 4:49 PMCharan
11/09/2022, 4:49 PMlet pdfFile = render.xmlToPdf({
xmlString: xml
});
let result = pdfFile.getContents();
let fileObj = file.create({
name:"printReview.pdf",
fileType:file.Type.PDF,
contents:result
})
this.context.response.addHeader({
name:"Content-Type",
value:"application/pdf"
})
this.context.response.writeFile({
file:fileObj
});
Charan
11/09/2022, 5:50 PMhttps.post.promise({
url: baseUrl,
body: JSON.stringify(pdfData),
headers: headerObj
})
.then(function(response){
log.debug({
title: 'Response',
details: response
});
})
.catch(function onRejected(reason) {
log.debug({
title: 'Invalid Request: ',
details: reason
});
})