Looking for PowerObjects? Don’t worry, you’re in the right place! We’ve been part of HCL for several years, and we’ve now taken the final step in our acquisition journey: moving our website to the HCL domain. Nothing else is changing – we are still fanatically focused on Microsoft Business Applications!

PowerObjects Blog 

for Microsoft Business Applications


How to Validate Close as Won on an Opportunity

Post Author: Joe D365 |

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!

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

PowerObjects Recommends