GetOptionValues of Multiselect Option set Field in C# CRM

Day to Day Dynamics CRM going very interestingly with lot of exciting features. One of the interesting features is Multiselect Optionset Field.

In my previous post contains Get / Set Value to MultiSelect Option set Field   and Limitations of Multiselect.

Here posting the Get Value of multilselect Optionset Field in C#.

gg

Create optionsetCollection.

Guid contactid = Guid.Parse("3C79AC20-45BA-E811-A96D-000D3A1CA7D6");
Entity contact = service.Retrieve("contact", contactid, new ColumnSet(true));

// It will returns the Collection of Values in the OptionSet.
OptionSetValueCollection multiselect = (OptionSetValueCollection)contact.Attributes["gb_multiselectoption"];

foreach (var option in multiselect)
{
   int value = option.Value;// Value of options.
}

 

That’s It. Enjoy 🙂

Advertisements

Limitations of Multiselect Optionset field in Dynamics 365

Day to Day Dynamics CRM going very interestingly with lot of exciting features. One of the interesting features is Multiselect Optionset Field.

In my previous post contains Get / Set Value to MultiSelect Option set Field.

gg

Limitations :

1.We cannot add this field to the header section of a form.

Header : If header is selected then Multiselect field is not available under fields.

h.png

Body : If Body is selected then Multiselect field is available under fields.

gh

2.This field is not available in Business rules while adding condition and setting Value to this field.

67

3.This field is not available to add step for a stage in Business process Flow.

45

4.This field is not available to add check condition in Workflow .

45

5.This field is not available in Filtering attributes Plugin.

6.Report wizard Condition.

7.Cannot be used in Charts.

8.Can add up to 150 values available for selection.

  1. This field Cannot have a default value like Normal Option set fields.

89

10.Field cannot participate in bulk-edit mode.

11.This field Cannot be configured for sorting in a Views.

12.Multiselect Option field cannot be a Calculated or Rollup field.

That’s It .Enjoy 🙂