Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Multi-select option-set fields not recognized by SSRS in Dynamics CRM 365 V9

Posted on by

We have an SSRS report that connects to Dynamics CRM V9 and I tried to test if it's possible report on the new multi-select option-set field.  In the SSRS query designer, when I try to use a multi-select field I receive an error saying, "The attribute [field] cannot be found on the contact entity."  I've checked the spelling and syntax and it works on other fields.  Are multi-selects not currently supported with SSRS?  Thanks so much.     

*This post is locked for comments

  • Indhu Profile Picture
    Indhu 55 on at
    RE: Multi-select option-set fields not recognized by SSRS in Dynamics CRM 365 V9

    Ok thank you for the quick response. I will do that way.

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Multi-select option-set fields not recognized by SSRS in Dynamics CRM 365 V9

    Hi Indhu,

    This is a limitation of the MultiSelect Option Set field type. As a workaround, you could copy the MultiSelect Option Set values to a text field and then use the text field in your SSRS report.

  • Indhu Profile Picture
    Indhu 55 on at
    RE: Multi-select option-set fields not recognized by SSRS in Dynamics CRM 365 V9

    Can you please tell me how you fixed this. because I am having the same issue now. I cannot create a temporary fix - plugin. Any other options??

  • Suggested answer
    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 :) 

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Multi-select option-set fields not recognized by SSRS in Dynamics CRM 365 V9

    Not sure if this will help you, but there are some limitations on multiselects. In CRM Web report designer you cannot add multiselect, so might be the same for the SSRS report:

    nishantrana.me/.../limitations-of-multi-select-option-sets-in-dynamics-365-ce

    Hope this helps.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Multi-select option-set fields not recognized by SSRS in Dynamics CRM 365 V9

    Same issue, is there any solution?

    Thanks!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans