web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Dynamics 365 CE Translation SDK APIs

(1) ShareShare
ReportReport
Posted on by 327

Hello everybody

Are 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-languages

Can someone provide me an example of how do I use the  ImportTranslationRequest and the ExportTranslationRequest messages?

thanks in advance

I have the same question (0)
  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    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.

  • Gmanunta81 Profile Picture
    327 on at

    Where do I find some examples ? do you have some weblinks to read ?

  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    Hi giovanni manunta,

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 182 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 123

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans