locked
Dynamic 365 - Multilanguage in plugins RRS feed

  • Question

  • Am trying to create a plugin to apply entity validations. When the validation fails, an InvalidPluginExecutionException will be thrown. If the plugin is triggered from a CRM form, the result will be an error popup showing the text of the exception. I would like to make this message multi-language, I mean, if multiple languages are available on CRM, I would need the raising message to be shown in the user language. Is there any recommended approach to this problem?

     

    Thanks in advance


    • Edited by Harry91 Thursday, October 12, 2017 7:20 AM
    Thursday, October 12, 2017 7:19 AM

All replies

  • Hello,

    I believe the easiest way for you is to get user who initiated the plugin, read that user settings, get active language id and based on it show this or that message.

    Good luck.


    Dynamics CRM/Business Solutions MVP
    Read My blog

    Sunday, October 15, 2017 10:27 AM
    Moderator