Plugin on Re-Open Opportunity in CRM

Hi,

Today I got a requirement to do some business logic when re-opening the opportunity. First of all, I thought writing a plugin and having pre-image to compare the state or status reason. Again I just checked the plugin messages on the opportunity as Won, Lost, SetState and SetStateDynamicEntity.

To trigger the plugin on Reopen the opportunity, we need to register the plugin on SetState or SetStateDynamicEntity. Won triggers when we won the opportunity and Lost when we close the opportunity as Lost.

Hope this helps.


Happy CRM’ing
Gopinath

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s