Hello experts,
how to send an email using plugin by late bound?
i used below code but i could not done with that..please help me
Entity entity = (Entity)context.InputParameters["Target"];
Entity from = new Entity("activityparty");
from["partyid"] = new EntityReference("systemuser", context.UserId);
Entity to = new Entity("activityparty");
to["partyid"] = new EntityReference("systemuser", context.UserId);
Entity mail = new Entity("email");
mail["from"] = new Entity[] { from };
mail["to"] = new Entity[] { to };
mail["subject"] = "";
mail["description"] = "";
mail["directioncode"] = true;
Guid mailid= service.Create(mail);
*This post is locked for comments
I have the same question (0)