|
-
Problem in instantiating the email template using C# in CRM3.0
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.
Similar Threads
-
By George Ceaser in forum ASP.NET
Replies: 6
Last Post: 10-31-2002, 01:43 PM
-
Replies: 0
Last Post: 10-30-2002, 04:39 AM
-
By George Ceaser in forum ASP.NET
Replies: 0
Last Post: 10-25-2002, 10:03 AM
-
Replies: 0
Last Post: 12-13-2001, 12:06 PM
-
By Michael Cole in forum Architecture and Design
Replies: 1
Last Post: 11-27-2001, 11:51 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks