web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Trigger plugin on Multi Select Option set field update

(0) ShareShare
ReportReport
Posted on by

I am trying to receive update event on Multi select option set field in Plugin.

I can not see my multi select option set field in filtering attribute list.

Is there any way to trigger a plugin on Multi select option set?

*This post is locked for comments

I have the same question (0)
  • David Jennaway Profile Picture
    14,065 on at

    That's a little surprising, but it might be the case, as there are some limitations on using Multi select option sets. However, I'd check the following:

    • Have you got the most up-to-date version of the Plug-in registration tool ? I expect it'd need to be updated to support Multi select option sets
    • Does the plugin trigger if no filtering attributes are set (i.e. on an update to any field) ? It wouldn't be ideal if you had to do this, then check for the field within the plugin, but could be a workaround
    • It is possible to register a plugin step programmatically. Can you successfully set the filtering attributes this way for a Multi select option set
  • VermaNitin Profile Picture
    455 on at

    Hi,

    It seems that currently the multuiselect attribute is not available as a filtering attribute in plugin registration tool.

    Though you can select it inside a workflow designer as a triggering attribute to run the workflow.

    May be in the upcoming versions we may have this ability to select the multiselect attribute as a triggering attribute in a plugin.

    Let me know if it helps!

    Many thanks

    Nitin Verma

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    Multi-select is currently not available as a filtering attribute for Plugin.

    You can use a workflow that will call an action if you need to establish code behind logic.

    Used it for a particular requirement that I previously had.

    Hope this helps.

  • Community Member Profile Picture
    on at

    Thank You Aric. Actually we already have logic implemented in plugin and need to extend that plugin with multi select type of attribute.

  • Community Member Profile Picture
    on at

    Hello Devid,

    1. I tried connecting to dynamics crm via latest plugin registration tool but it does not connect. I did some changes in tool but cannot find multiselect attribute in filtering attribute.

    2. I want only few attributes to trigger the plugin. so this scenario I can not use.

    3. I need to explore this suggestion.

    Thank you for your suggestions.

  • Suggested answer
    Arpit Shrivastava Profile Picture
    7,518 User Group Leader on at

    Hi Sudeep, 

    Just a thought, Can't you write Javascript logic to auto-populate Multi-select field's value in any dummy field and trigger Plugin/Workflow on change of that dummy field. Though I didn't try hope it helps.

    Refer this article to getMultiSelctOptionSet value using JS:

    https://nishantrana.me/2017/10/15/multiselect-option-set-in-dynamics-365/

    If my answer helped to resolve your issue, kindly verify it by clicking 'Yes'. It would be helpful to the other community members seeking to resolve a similar issue.


    Cheers
    Arpit
    https://arpitmscrmhunt.blogspot.in

     

  • Community Member Profile Picture
    on at

    I thought of this approach, but attribute selection is dynamic as we are creating product. So we don't know how many attribute client have.

    Thank you for reply Arpit.

  • Tim Dutcher Profile Picture
    2,100 on at

    I ran into this today. I wanted to use a multi-select picklist as a filtering attribute and also in a pre-image and post-image. What worked for me was to manipulate values in the customizations.xml file (the main XML file within an exported solution) and then re-import the modified solution.

    The general steps are:

    1) In the plugin registration tool, add at least one filtering attribute (any field) and a field to the pre- and post-image if you need a multi-select picklist in one of these objects. This is necessary so that when you export a solution the proper XML nodes will be in the customizations.xml file.

    2) Create a solution that includes the plug-in assembly and steps.

    3) Export the solution (zip file).

    4) Make a backup of the zip in case you want to revert back to what's currently in place.

    5) Extract the zip and open the customizations.xml. Add your multi-select picklist field name(s) in the filtering attributes and image nodes (the values are comma-delimited).

    6) Add the xml file back into the zip file and import the solution

    Even though the plugin registration tool won't show the multi-select field(s) that are now saved to the plug-in step(s), the D365 platform handles these fields properly.

    It's too bad that we need to find work-arounds like this. If Microsoft would provide the source code for the plugin registration tool, as they used to, one of us could fix the problems in the tool quickly.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans