Question
4
Replies
6963
Views
Posted: December 29, 2015
Last activity: October 12, 2016
Closed
Solved
How to attach an excel or a pdf file to an email automatically
Hi All,
Good Morning, i have one scenario where we have few results in a page list and need to import them into an excel and need to attach it as an attachment to an email.
Note: input results to the excel file are coming from db using RDB-List.
Can you please help me understand or give me some reference how i can achieve this.
Thanks
Venkatesh G.
If you are on Pega 7.1.7 or above, you can reuse or use as reference, this activity @baseclass.pxConvertResultsToCSV to convert page list to CSV format. You can then leverage @baseclass.SendEmailNotification activity passing an AttachmentPage of class Data-EmailAttachments by copying the CSV data on to the AttachmentPage.