Quantcast
Channel: CRM Development 論壇
Viewing all articles
Browse latest Browse all 10280

CRM 2011 Identifying where Opportunity has been closed from

$
0
0

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


Viewing all articles
Browse latest Browse all 10280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>