Question
1
Replies
87
Views
Posted: July 9, 2019
Last activity: July 9, 2019
Closed
How to pass PDF to SendEmailWithAttachments Activity Parameters.
I have created the PDF using pxCreatePDF activity and then followed by i am using SendEmailWithAttachments OOTB Activity .
Can You Please explain me about how to pass PDF to SendEmailWithAttachments Activity Parameters.
This process is suppose to be performed irrespective of work object.
***Edited by Moderator Marissa to update platform capability tags****
Hi Anusha,
Please follow below steps.
1.Create a new page"attachment" of type "Code-Pega-List".
2.Use Property set method
attachment.pxResults(<APPEND>).pxObjClass = 'Data-WorkAttach-File'
attachment.pxResults(<LAST>).pyAttachStream = Base64Encoded "content of attachment"(modify it)
3.Create a new page AttachmentPage of Data-EmailAttachments class.
4.Property-Set
AttachmentPage.pyAttachment(<APPEND>).pyDecode == True
AttachmentPage.pyAttachment(<APPEND>).pyName == "ExportReport.xls"
AttachmentPage.pyAttachment(<APPEND>).pyReference ==attachment.pxResults(1).pyAttachStream
AttachmentPage.pyAttachment(<APPEND>).pyRemoveXML == False
5.Call the standard function SendEmailWithAttachments() (in the Pega-ProCom:DEFAULT library) supplying the page name as the AttachInfo parameter.
Please let me know If you need more assistance.
Thanks,
Abhinav