How to attach word document generated by pega (using silverlight) to a email and send to user.

How to attach word document generated by pega (using silverlight) to a email and send to user.

Note: The document is not yet attached to work object.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

October 5, 2015 - 5:23am


Have you considered checking the functionality involved in the activity : SendEmailNotificationWithAttachments

It can give you some clue about how you can attach some files and send it out from PRPC.

Refer this help article to know more on this :…

October 5, 2015 - 5:44am
Response to Santanu


I have checked this article . This approach needs the attachment reference in a property as input. But when we generate a word in clienside using silverlight i think it doesn't store the attachment stream in clipboard.

October 5, 2015 - 11:53am
Response to TariniDash


I have tried to quickly run one of the out of the box flow which normally used as a reference for creating doc and editing in PRPC

The flow name is : WordEmbedMergeTest.( Under PegaSample-Task )

I ran it and at the end of the execution I found that the word document that I have edited actually got attached in the workitem.

Please have a look at the key flow action here : CreateMergedWorkDoc which is calling " AttachCategorizedWordDoc " activity to attach it.

I believe that once you are done with attaching the content , you can easily follow the earlier PDN Link for sending email with attachment and send it to party !

So may be it will be a good idea to try similar kind of functionality at your end .

October 22, 2015 - 5:48am
Response to Santanu

Hi Santanu,

Thank you for your time for this. But this will be attached to the work object itself then we can send it using the OOTB activity.

But my requirement is not to attach to WO directly, but attach in a mail and it wont be stored in pega.

October 22, 2015 - 7:14am


Mb my article will help you? It's about Excel file, but i'm sure you can make the same for Doc file.

how to attach excel file to mail?