Hey,
Can anyone please tell me, how to use the Activity to send email using Correspondance rule in detail.
Thanks
Hey,
Can anyone please tell me, how to use the Activity to send email using Correspondance rule in detail.
Thanks
Call SendSimpleEmail or CorrNew activity of Work- class from your activity. Pass your correspondence name as param in CorrName.
Create Email Account rule (under Integration-Resources) → To connect to the email server
1.set param.To with email selected, Param.Subject with the subject, Param.CorrName & other param for the OOTB SendSimpleEmail activity.
@Kishore Kumar Madduri
I wouild like to go a bit further
How to pass multiples attachments to that mail?
Let s consider an excel file and a pdf file
Try passing all the Attachment Keys to param.AttachmentKeys in comma separated.
ex: Attachmentkey1, AttachmentKey2
To send an email using a Correspondence rule from an activity in Pega, first create an email-type Correspondence rule with your message content. Then open your activity in Dev Studio and add a step using the method “CorrNew”. In this step, enter the name of your Correspondence rule in the CorrName field. Set the CorrPage to the primary page like “pyWorkPage”. In the Party parameter, mention the party name like “Customer” or “To”, depending on who should get the email. If you want the email to be sent right away, set the “Send” parameter to true. Save and run the activity, and Pega will send the email using the Correspondence rule you configured.