I have a plugin which is executed on the message "Update", filtering attribute is a field called "contractstatus". It is run in calling user's running context and execution order is 1. Pipeline is Pre-validation, execution mode synchronous and deployment is server. A preimage with some of the attributes is also created.
This plugin is getting triggered when the user clicks on one of the buttons in CRM which changes the value of "contractstatus" .Basically the job of the plugin is when triggered, will clear one field in one entity and another is updated with the value of the field cleared.
I have now created certain a background workflow which checks certain conditions and which when met, will change the field of "contractstatus". The issue now is that the plugin is not working on this case. The field in oneentity is not getting cleared and other is not populated with the field with the value of cleared field.
It's like the plugin is dependent on the user clicking the button in CRM.
Any feedback as to where I am wrong?
*This post is locked for comments