Export (0) Print
Expand All
Expand Minimize

ExportTranslationsXml Message (CrmService)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Works for all deployment typesWorks online only

Export all translations to an XML string.

The relevant classes are specified in the following table.

TypeClass
RequestExportTranslationsXmlRequest
ResponseExportTranslationsXmlResponse

Remarks

To use this message, pass an instance of the ExportTranslationsXmlRequest class as the request parameter in the Execute method.

For a list of required privileges, see ExportTranslationsXml Privileges.

Example

[C#]
// Set up the CRM Service.
CrmAuthenticationToken token = new CrmAuthenticationToken();
// You can use enums.cs from the SDK\Helpers folder to get the enumeration for Active Directory authentication.
token.AuthenticationType = 0; 
token.OrganizationName = "AdventureWorksCycle";
 
CrmService service = new CrmService();
service.Url = "http://<servername>:<port>/mscrmservices/2007/crmservice.asmx";
service.CrmAuthenticationTokenValue = token;
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the request.
ExportTranslationsXmlRequest request = new ExportTranslationsXmlRequest();

// Execute the request.
ExportTranslationsXmlResponse response = (ExportTranslationsXmlResponse)service.Execute(request);

// Get the data
String translationsXml = response.ExportXml;
[Visual Basic .NET]
' Set up the CRM Service.
Dim token As New CrmAuthenticationToken()
' You can use enums.cs from the SDK\Helpers folder to get the enumeration for Active Directory authentication.
token.AuthenticationType = 0
token.OrganizationName = "AdventureWorksCycle";
 
Dim service As New CrmService()
service.Url = "http://<servername>:<port>/mscrmservices/2007/crmservice.asmx";
service.CrmAuthenticationTokenValue = token;
service.Credentials = System.Net.CredentialCache.DefaultCredentials

' Create the request.
Dim request As New ExportTranslationsXmlRequest()

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

' Get the compressed data
Dim translationsXml As String = response.ExportXml

See Also

Concepts

Reference


© 2010 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft