Question

Accenture Federal Services
US
Last activity: 29 Oct 2021 7:13 EDT
Email Attachment through Agent with no Work Item
I am trying to fulfill a business requirement in which I need to automatically send an email (through an agent) that will send out an excel report attached to the email. I know that I can schedule reports on the report tab, but this is a custom report that does not show up with that option. I have searched through Pega Community and through the other people at my company and so far no one has been able to help me. Currently I am doing the following: Call MSOExcelDownload (This downloads the file exactly as I would expect) Page-New => AttachmentPage (class Data-EmailAttachments) Property-Set => pyData, pyName, pyRemoveXML, pyType, and pyDecode on AttachmentPage Call SendSimpleEmail (This has been heavily modified in our application to email according to business needs) As of now, the activity runs and sends out an email with an attachment, but the attachment is only the binary file for the template and contains no information. This is because I am passing the TemplateFile.pyFileSource in for pyData on the AttachmentPage. I cannot find the file source for the downloaded attachment once its been created. Any help or suggestions with this would be highly appreciated. Thanks.