Hi
I've got a plugin registered on Opportunity entity which fires when an opportunity is closed as won. The plugin works fine when the opportunity is closed from the opportunity entity . Apparently opportunities can be closed from order entity as well . This is where my plugin fails . Is there any way to check the if the plugin's been fired only from opportunity ? This is the initial check i do
if (localContext.PluginExecutionContext.InputParameters.Contains("OpportunityClose") && localContext.PluginExecutionContext.InputParameters["OpportunityClose"] is Entity)
Irrespective the fact that the plugin gets triggered from either opportunity or order this condition is satisfied , I hope I make sense.
Regards
Vivek
Vivek Pradhan
Vivek Pradhan