To have messages, including errors, display in the language of the user, you have to modify the ADCS web service codeunit to account for the language setting.

To specify the local language of ADCS messages

  1. Start the Microsoft Dynamics NAV Development Environment, and on the Tools menu, choose Object Designer.

  2. Choose CodeUnit, and from the list, select codeunit 7714. Choose the Design button. The C/AL Editor opens.

  3. In the ProcessDocument function, add a line of code as highlighted in the following code. The following example demonstrates setting the language code for German.

      Copy Code
    GLOBALLANGUAGE(1031);
    InputXmlDocument := InputXmlDocument.XmlDocument;
    InputXmlDocument.LoadXml(Document);
    ADCSManagement.ProcessDocument(InputXmlDocument);
    ADCSManagement.GetOutboundDocument(OutputXmlDocument); 
    Document := OutputXmlDocument.OuterXml;
    

See Also