Hi,
iam trying to send email to CRM contact in C# using CRM template.
My Code :
InstantiateTemplateRequest instTemplate = new InstantiateTemplateRequest();

instTemplate.TemplateId = new Guid(TemplateId);


instTemplate.ReturnDynamicEntities = true;

instTemplate.ObjectId = new Guid("F54B6128-B9DF-DC11-9EA9-0018F80B1359");// Contact's GUID
instTemplate.Subject = "hello";
instTemplate.ObjectType = EntityName.contact.ToString();
Here iam using InstantiateTemplateRequest . i wanetd to know what i need to mention for objectid and object Type. This email template i have created is for contact. I tried by giving object type as contact and objectid as Guid of recipient id. also tried with system user id..
iam getting error on
InstantiateTemplateResponse instTemplateResponse = (InstantiateTemplateResponse)Ca.ExecuteRequest(instTemplate);
as "Service unable to process request"
Please can anyone tell me what i need to specify for object id and object type.
Please reply ASAP.