Send Email With Attachment from pegacloudrepository

Hello everyone

We’ve some CSV files that are generated by our batch campaigns and some reports, this files are stored in our pegacloud repository under the following path (pegacloudrepository/PEGA_FILE/PEGA_TXT/xxxxx_xxxx.csv)

Now we need to send some of this in an Email as Attachment, I’ve tried with SendEmailNotification and SendEmailWithAttachments, but I might have configure something incorrectly.

How can I get the file from the repository and send it, using activity, as this will be scheduled.

Thanks

@Junicavi please try these steps

First you need to get the attach stream of file from pegacloudrepo.

Getting file stream from pega cloud repo

Then using that stream you need to form an attachment page and use sendemailnotification activity.

Sending email with attachment using attach stream

@Anoop Krishna Thanks, I’ll try this approach and let you know the results!