We are looking for a simple or ootb way to send an email to all participants by marking them in CC, Currently we are using CorrNew activity and we are passing party role in CC param, but in coming days we will be having more parties and we can't mention all of them in CC role.
So is there any way to send notification to all the available parties by marking them in CC using CorrNew ootb activity?
***Edited by Moderator Marissa to add Capability tags***
I understand that you need to pass the participants in “CC” in dynamic way without explicitly mentioning each.
Yes, there is an OOTB way to send an email to all participants by marking them in CC in Pega. You can use the "pySendEmail".
You can implement as follows:
1. Create a new activity and use the "pySendEmail" method to send the email. You can specify the email subject, body, and recipients using the input parameters of the method.
2. In the "ccAddress" parameter of the "pySendEmail" method, you can use the "pxAddRecipients" method to dynamically add all participants to the CC list. This method can take a data page as input that contains the list of participant email addresses.
3. Configure the data page to retrieve the email addresses of all participants. You can use a report definition or a data transform to retrieve this data.
4. Call the new activity from your case or flow action to send the email to all participants.
This will dynamically add all participants' email addresses to the CC list of the email.
By implementing the above steps, you can send an email to all participants in a case by marking them in CC without having to explicitly mention each of them in the CC field.