Display embedded Attachment in email attachment

Hi All,

We are sending an email with a single file of a specific category as email attachment and attaching the email to case, on viewing the email as an attachment, it is showing all the files belongs to that category as an attachments of that email but our requirement is to display the exact embedded attachment in email, it would be great if anyone can help here.

@AnjaneyuluG

If i understood correctly then you want to send one specific file in the email but the email is having all the attachments of the same category of the case attached to the email. Please correct me if i am wrong.

Also if i understood correctly then could you please attach the screenshot of the configuration you have done to add attachment in the email and which OOTB activity you are using to send email.

@VikashK99 , Hi, You are partially correct, we are sending an email with one correct attachment only but when viewing that email as a case attachment in the attachment window it is displaying all the files belongs to that category, Code snippets I can’t be able to share due to restrictions and we are using SendEmailNotificationWithAttachments to send the mail.

@AnjaneyuluG
I dont see any OOTB activity with the name you have mentioned.
Could you please confirm if this is an OOTB activity or if it is your custom activity.

In case it is a custom activity then which OOTB activity you have extended.

There are 2 OOTB activities present in Pega

  • SendEmailWithAllAttachments

  • SendEmailWithAttachments

You should extend the second one in order to send only the a particular file by passing the attachment key.

If this is still creating issue then it might be because the sendemail will be taking the whole attachment page which is having all the attachments so you can create another attachment page in the clipboard and copy the details of only one file which you want to send as an attachment and then pass this page in your OOTB activity instead of the default attachment page.

@VikashK99 ,

Hi Vikash,

This rule (SendEmailNotificationWithAttachments) is exsted in @baseclass and in Pega-ProCom ruleset but deprecated, however sending the email with a specific attachment is not a problem here, the email which is sent from workobject is getting attached to workobject as an attachment, when viewing this email from attachments section, in email header part along with from, to, cc, subject we have to display the attachment name which is sent through mail, but here it displaying all the attachments in work object which are under the same category of file which was sent through mail. hope issue is clear now. please help me.

by the way, it is same behavior when using the SendEmailWithAttachments also.

This is fixed by doing the necessary modifications in Show section in Data-Corr-Email class, now we display only the respective attachment of that email.

@AnjaneyuluG I am not nable to identify Show section Data-Corr-Email class. Is the section name right?