I need to create email activity with cc field,I use the following code for add values in cc field it throws the error
string ccDetails ="<Guid1 here>,<guid2 here>"
string[] splitCCIds = ccDetails.Split(',');
EntityCollection collCcParty = new EntityCollection();
foreach (var ccId in splitCCIds)
{
EntityReference cc = new EntityReference("systemuser", new Guid(ccId));
Entity ccParty = new Entity("activityparty");
collCcParty.EntityName = "systemuser";
collCcParty.Entities.Add(ccParty);
}
email.Attributes.Add("cc", collCcParty);
Error: I got the following error.
Cannot create activity party: either partyid or addressused field should be present
But I use the same code for add the values in "To" field its working fine.How can I add the values in cc Field.
*This post is locked for comments