Hi ,
I have a requirement where I need to Instantiate Email template for multiple custom entities. Is there any way to pass entity collection as object ?
InstantiateTemplateRequest request = new InstantiateTemplateRequest();
request["TemplateId"] = EmailTemplateId;
request["ObjectId"] = logicalnameofentity.Id;
request["ObjectType"] = "logicalnameofentity";
InstantiateTemplateResponse response = (InstantiateTemplateResponse)service.Execute(request);
EntityCollection templateCollectionnew = (EntityCollection)response["EntityCollection"];
Thanks in advance
*This post is locked for comments