Hello,
I would like to know how I am able to catch the plugin message of an opportunity if the user has clicked any of both buttons Close as Won or Lost to avoid launching the Opportunity close quick create form if a specific condition was not met.
https://learn.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/entities/opportunity?view=op-9-1#messages
The main goal is that:
For example, if the Est Close Date is overdue, it should throw an exception and avoid opening the quick create opportunity close form on the Click of both buttons.
Could you please provide an example of how it can be done? Shall we do it via Plugin or JS?
Any help is greatly appreciated.
Best regards,
EBMRay