SendEmailWithAttachments not attaching Correspondence to case

Using SendEmailWithAttachments I am able to send email with specific file attachments.

Files are getting attached but the email(Correspondence ) is not getting attached to the case.

After SendEmailWithAttachments tried calling CorrAttach , but still not able attach the Corr to Case.

Pega Version : 8.5.4.

Any suggestions please?

@SrilathaP21

Could you please check whether you are having logic to hold all mail related information in Data-Corr-Email shadow page, that page is getting deferred save in activity via which you are sending mail and then you are invoking CorrAttach activity to establish link.

You could refer SendSimpleEmail activity to know what all values needs to get populated in Data-Corr-Email shadow page

Because in back-end pega will just have link between the work object and Data-Corr-Email entry instance, this link is responsible for displaying triggered mail in work object audit.

Attached screen-shot, please use it for reference.

@GunaSekaran_B

Thank you so much. It worked.