RE: Multi-select option-set fields not recognized by SSRS in Dynamics CRM 365 V9
We had to create a plugin that runs on update/create that retrieves the option-set values from the multi-select field and then copies them to a text field field. The SSRS report uses the text field. It's our current workaround until multi-selects are better supported. Here's an overview of what the plugin does:
Retrieve the multi-select value:
QueryByAttribute querybyattribute = new QueryByAttribute("contact");
querybyattribute.ColumnSet = new ColumnSet();
querybyattribute.ColumnSet.AddColumn("your_multi_select e.g. 'languages_spoken' ");
EntityCollection retrieved = _service.RetrieveMultiple(querybyattribute);
//Above code will return the option-set value; if all you want is the value for SSRS that's enough.
If you want the option display name you can create a dictionary object:
new SharedFieldCollection()
{
MultiSelectField = "languages_spoken",
//Once you match the value to the display name in the OptionsList below you can copy it over
//to the ConcatField below.
ConcatField = "languages_spoken_collection",
OptionsList = new Dictionary<int, string>()
{
{224310002, "French"},
{224310000, "English"},
{224310001, "Spanish"}
}
}
If this answer helps please mark it as a verifiable answer :)