I am using Dynamics 365 Online Trial. I have a requirement to trigger a plugin when the user is disabled/enabled in CRM. So I have created the plugin and registered the same in User entity
SetStateDynamicEntity messages but the plugin is not triggered.
Plugin Registration Steps:
Message: SetState & SetStateDynamicsEntity
User records have been Enabled/Disabled in CRM (through O365) but the plugin is not triggered.
Also tried with update message plugin for the same requirement, but that is also not triggering the plugin.
Updated Plugin Registration Steps:
Filtering Attribute: All Fields
Image: Pre Image
Any help would much be appreciated.
You should be able to register the plugin on update.
Check at the start of your plugin, if entity contains attribute state , meaning it has changed then do your logic otherwise exit the plugin.
You could also have pre and post images containing the status and check if pre status does not equal post status then that means it has changed
Hope this helps