web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Catch plugin message onClick of close as Won/Lost buttons

(0) ShareShare
ReportReport
Posted on by 905

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

I have the same question (0)
  • Suggested answer
    Haig Liu Profile Picture
    Microsoft Employee on at
    Hi EBMRay,
     
    I suggest you use ribbon workbench to add actions or rules to the buttons.
    Clicking a button triggers an action to pop up a reminder box:
    Or hide/show button based on field value:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 60 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 51

#3
Satyam Prakash Profile Picture

Satyam Prakash 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans