I have a party say ‘Interested’ as a repeating party, this means I will have pyWorkParty(Interested), pyWorkParty(Interested_02) under pyWorkParty.
So when I am passing this ‘Interested’ party as a CC_PartyRoles param to CorrCreate OOTB activity, it is sending email to only pyWorkParty(Interested) and not considering the next repeated parties like pyWorkParty(Interested_02).
@BATTINIRAMESH this looks fine to me. Should be working. Can you give To_partyRoles too to corrcreate for testing. Also while tracing were you able to see why it is getting skipped on looping pyWorkparty? Can you also try with CorrNew activity keeping SendNow as true and giving To_Party and CC_Party
@Anoop Krishna We can pass either To_partyRoles or just PartyRole, the difference here is We can pass multiple parties separated by ‘,’ in To_partyRoles and in PartyRole we can pass only one party.
I think this is not a problem with our custom code, May be Pega didn’t managed to send email to repeated parties until we give param as “Interested, Interested_02”. Because it worked when I pass param like “Interested, Interested_02”.
But as a low code developer, I would expect Pega should send the email to all “Interested” repeated parties if we pass just “Interested” :>
As per the activity and the description it states “comma delimited list of party specific roles for emails” and this is directly set to pyCCString and the Engine also considers it as a comma separated string and seems like repeating roles are not handled.
@MarijeSchillern Can you please check if our understanding is correct? Ideally the CorrCreate Should consider repeating roles for CC,BCC
@BATTINIRAMESH Hi Just checked the CorrNew activity, step 2 loops the pyworkparty for CC and BCC and passes the values to corrcreate may be corrcreate was only intended to be a reusable activity for sending email for single or CSV string, that is why the logic for repeating parties are not there. Also there is a parameter called broadcast so to justify it the activity seems to be as it is
@BATTINIRAMESH yaa right. I wanted to find out whether we can find any changes by filling up all the parameters. It’s just a kind of debugging method. You can try using corrnew also. Let’s keep trying if some or other is working with any of the trial and error method.