MakeAvailableToOrganizationTemplate Message

banner art

Makes the specified e-mail template available to the entire organization.

The relevant classes are specified in the following table.

Type Class
Request MakeAvailableToOrganizationTemplateRequest
Response MakeAvailableToOrganizationTemplateResponse
Entity template


To perform this action, the caller must have access rights on the template entity instance. For a list of required privileges, see MakeAvailableToOrganizationTemplate Privileges.


The following code example shows how to use the MakeAvailableToOrganizationTemplate message.

// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the request.
MakeAvailableToOrganizationTemplateRequest availabilityRequest = new MakeAvailableToOrganizationTemplateRequest();

// TemplateId is the GUID of the template to make available.
req.TemplateId = new Guid("2B951FBC-1C56-4430-B23B-20A1349068F3");

// Execute the request.
MakeAvailableToOrganizationTemplateResponse availabilityResponse = (MakeAvailableToOrganizationTemplateResponse)service.Execute(availabilityRequest);

[Visual Basic .NET]
' Set up the CRM Service.
Dim service As New CrmService()
service.Credentials = System.Net.CredentialCache.DefaultCredentials

' Create the request.
Dim availabilityRequest As New MakeAvailableToOrganizationTemplateRequest()

' TemplateId is the GUID of the template to make available.
availabilityRequest.TemplateId = new Guid("2B951FBC-1C56-4430-B23B-20A1349068F3")

' Execute the request.
Dim response As MakeAvailableToOrganizationTemplateResponse = CType(service.Execute(availabilityRequest), MakeAvailableToOrganizationTemplateResponse)

Related Topics

CrmService Messages

© 2007 Microsoft Corporation. All rights reserved.