Question

1
Replies
369
Views
madhuy90 Member since 2013 1 post
nttdata
Posted: 1 year ago
Last activity: 1 year 9 months ago
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?

Low-Code App Development Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn