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.