Question
1
Replies
405
Views
Posted: November 16, 2018
Last activity: December 4, 2018
Closed
Send email with PDF attachment generated by HTMLToPDF (Do not want to attach to case)
I want to Email with PDF attachment generated by HTMLToPDF (Do not want to attach to case).
I tried below option but its attaching as blank. java step then email params
byte[] byteArray=(byte[])tools.getParameterPage().getParameterValue("PDFDocument");
strFileData =Base64Util.encodeToString(byteArray);
.pyAttachments(<LAST>).pyData =local.strFileData
---I am able to view the pdf with Code-Pega-PDF.View, it's attaching blank to Email not sure if i am missing anything or any OOTB issue?
Activity SendEmailWithAttachments should be able to achieve this and the setup could be similar to below:
Thank you,
Pawan