Sending mails with updated excel as an attachment - without work object
I need to run a batch to show the statistics in body of the email and attach an excel with supporting details while sending an email from Pega.
Display the transaction statistics in the body of the mail (Completed – Using SendSimpleEmail activities, Correspondence rule with Data Grid and inline styles)
Capture the data into excel from Data Page (Completed - I was able to capture the data from Data Page using the MSOGenerateExcelFile activity in an excel and store into the service directory of the Server)
Send an email with statistics and supporting details in the excel (Looking for an optimal solutions)
Please let me know whether this approach is suitable to send an email without creating the WO. And I was not able attach excel and pass the correspondence rule using above approach and SendEmailWithAttachments activity respectively
Please let me know your suggestions to address the below scenario:
Current implementation – I was using SendSimpleEmail activity and show the statistics in grid with the counts in the mail. Is it possible to send an excel as attachment using SendSimpleEmail Activities, if AttachementPage is passed as parameter. I tried, but it was not working. Any suggestions?
If I need to use SendEmailWithAttachments activity to send an excel in a mail, How to pass the correspondence rule to this activities? I am not able to see any options to pass the correspondence rule as parameter for any of the SendEmail*** activtities?
Using MSOGenerateExcelFile, the data is captured in excel and stored in the Service directory. How to attach the file from the service directory and send an email? But this option is kept as a last priority, as we may send around 300 plus email for one batch (including upload and download data in an excel)