locked
Set option set value through text in mscrm 2011 plugin RRS feed

  • Question

  • Dear all;

    as all we know that we can set optionset field in mscrm 2011 in plugin through providing the right optionsetset integer value but i have a scenario which for example i have text field which ha sthe label or text value of pick list for example (creditor) and creditor is also one of the value of picklist so through that text field i have to set the option set through plugin any suggestion

    Wednesday, February 19, 2014 10:34 AM

Answers

  • Hi

    Maybe you can do it like this.

    When you use RetrieveAttributeRequest, do it to find localized label first with proper languagecode.

    The response gets all the labels and keys for an optionset. so you can easily look for the id in your collection.

    Hope it helps !

    • Marked as answer by anwar_addi Wednesday, February 19, 2014 10:50 AM
    Wednesday, February 19, 2014 10:41 AM

All replies

  • Hi

    Maybe you can do it like this.

    When you use RetrieveAttributeRequest, do it to find localized label first with proper languagecode.

    The response gets all the labels and keys for an optionset. so you can easily look for the id in your collection.

    Hope it helps !

    • Marked as answer by anwar_addi Wednesday, February 19, 2014 10:50 AM
    Wednesday, February 19, 2014 10:41 AM
  • You can find the how to Retrieve Global Option Set Text and how to Get Local/Normal optionset Lable using Metadata Service in the following article.

    Retrieve OptionSet Text in CRM 2011 using C#

    Wednesday, February 19, 2014 2:36 PM