POWEROBJECTS

718 Washington Ave. N. Suite #101
Minneapolis, MN 55401
View map and all Locations

Send us a message

When the circumstance occurs to check when an Opportunity is Close as Won you can validate the execution of this message with a plugin using the Win message. Today’s blog will show you how to do this!

  1. First, you’ll click on the Close As Won button. This will bring up the following dialog:

You then fill out the request and a Win message will be sent to the execution pipeline.

You can write a plugin to capture the execution of this message to do any pre or post validation as needed.

The Win message contains an input parameter of OpportunityClose which you can use to obtain a reference to the Opportunity Id of the record being processed.

You may expect to register a Step using the Plugin Registration tool as ‘Won’ but it is instead a ‘Win’ as shown below.

There you have it. You can now validate the Opportunity being Close As Won and do any validation that is needed.

For more tips and tricks, make sure that you have subscribed to our blog.

Happy Dynamics 365’ing!

Avatar for JoeCRM

JoeCRM

Joe CRM is a CRM superhero who runs on pure Microsoft Dynamics CRM adrenaline. As the face of PowerObjects, Joe CRM’s mission is to reveal innovative ways to use Dynamics CRM and bring the application to more businesses and organizations around the world.