Breaking news from around the world
Get the Bing + MSN extension
Check out the latest Sales updates!Learn about the key capabilities and features of Dynamics 365 Sales and experience some of the new features.
Download overview guide | Watch Sales video
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
Hello everybodyAre there some SDK APIs (c# coding) that I use to import and export translation?
I found this Official Microsoft link that it seems useful https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/create-solutions-support-multiple-languagesCan someone provide me an example of how do I use the ImportTranslationRequest and the ExportTranslationRequest messages?thanks in advance
Hi giovanni manunta,
You can use the ImportTranslationRequest Class and the ExportTranslationRequest Class by passing an an instance of each class to the Execute(OrganizationRequest) method. This will respectively return an instance of ImportTranslationResponse and an instance of ExportTranslationResponse.
Where do I find some examples ? do you have some weblinks to read ?
The Execute method is a generic method that can take any request message, execute it and return response message. C# classes from Microsoft.Xrm.Sdk that can successfully model request and response messages are OrganizationRequest and OrganizationResponse classes. Naturally, the definition of Execute method is:
OrganizationResponse Execute(OrganizationRequest request);
OrganizationRequest describes the action that needs to be performed and therefore it has two important attributes: RequestName and Parameters. RequestName, which can be set after creating OrganizationRequest or through OrganizationRequest’s constructor is string value representing the name of the action that will be invoked by executing OrganizationRequest. If that action requires some parameters, then they can be set through Parameters attribute which is ParameterCollection, or just by use of [ ] on object of OrganizationRequest in form of: orgRequest[“parameterName”] = “parameterValue”; On the other side, OrganizationResponse has equivalent attributes: responseName that can be read or set as a string value representing the name of the action and results which is a ParameterCollection which can be read as: string result = orgResponse[“resultName”]; or set as orgResponse[“resultName”] = “resultValue”;
However, the usual way to use Execute method is not with OrganizationRequest and OrganizationResponse messages, but rather with their derived classes. In the Microsoft.Xrm.Sdk.Messages and Microsoft.Crm.Sdk.Messages namespaces, there is whole variety of these classes which can be used for most different predefined actions within CRM. In your case, you will want to use the ImportTranslationRequest Class and the ExportTranslationRequest Class by passing an an instance of each class to the Execute(OrganizationRequest) method. This will respectively return an instance of ImportTranslationResponse and an instance of ExportTranslationResponse.
Business Applications communities