Search code examples
dynamicdynamics-crmmicrosoft-dynamicspower-automatepowerapps

Trigger Plugin when change in specific dropdown in Dynamics 365


Is it possible to trigger a plugin when a dropdown value changes to a specific option? If this is feasible, how to implement it?

For instance, I would like to trigger the plugin when the status is set to 'Contract Executed':

enter image description here

What are the steps that I need to follow to call plugin when a specific dropdown value is set?


Solution

  • This depends on what your plugin is doing. If your plugin will execute every time the dropdown value was change I hope that it's not creating a record.

    There are 2 ways (I think) that can solve your problem:

    1. Using only a plugin you can register your step on Create / Edit (if you use edit, include your dropdown as filtering attribute), from your logic you can check the value of your dropdown. But this will only execute when your record was saved.
    2. Create a Dynamics Custom Api (logic will be the same as your plugin) then you can trigger it onChange of your dropdown. Create and use custom APIs