Storing Case Attachment in BLOB & Pega Cloud

I have a use case where I need to store the Case Attachments in both Pega BLOB and Pega Cloud SFTP server. Could someone explain the steps (rule type, method etc) needed to do the same? Thanks in advance...


Keep up to date on this post and subscribe to comments

January 10, 2019 - 4:08am

Hi Kamlesh,

I can  explain same for email service,

1. Any attachment will be available on pyAttachmentPage in email service rule. So, when you wanted to save these attachments in Pega Blob and external server. Follow below.

2.AddAttachmentFromMail is an activity available OOTB which you need to loop on page results pyAttachmentPage.pyAttachNames this activity will automatically save attachments to Pega DB. (If you wanted to make changes to name of attachements etc, you must modify the OOTB activity AddAttachmentFromMail )

3. Write an activity on the same loop (i,e; pyAttachmentPage.pyAttachNames ) in different step and handle the attachments page to an agent. And inside the Agent activity write the code for storing the attachments in Server.


Upendhar V.

May 5, 2019 - 4:03pm
Response to Upendhar V

Nice solution...Can you tell me, what is the Attachmentvalue parameter for AddAttachmentFromMail activity?

May 6, 2019 - 1:13am
Response to SantoshAnisetty

attachmentName and attachmentValue are two main parameters along with these we also have attachContentDisposition and attachMimeType as optional params.

May 11, 2019 - 8:42am
Response to Upendhar V

Thanq Upendhar

January 10, 2019 - 5:05am


For Cloud SFTP, I suggest you raise Cloud ticket.


January 10, 2019 - 6:05am


Do let us know the SR number of the ticket incase you end up creating one. That will help us connect your post to the SR.


Vidyaranjan | Community Moderator | Pegasystems Inc.