Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Having trouble intercepting the Ribbon Button functionality (Activate Quote)

Posted on by 15

Hello,

I'm trying to intercept the Activate Quote button functionality to make sure some fields are filled in before the Quote is activated. I have tried the following ways with Javascript:

  1. Calling the activateQuote() function in a custom javascript library function and adding that custom function to Activate Quote button in the Ribbon through XRMToolBox - Gives an error that activateQuote() is undefined.
  2. Mscrm.Form.quote.ActivateQuote.ActivateQuote() function in the custom JS library - Nothing happens

Can someone please tell me if I am missing something? Is a reference or something needed that I am not adding? 

*This post is locked for comments

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Having trouble intercepting the Ribbon Button functionality (Activate Quote)

    Hi,

    Another way to implement this functionality is to create a real time workflow, checks for the required fields, if the fields are blank then cancel the workflow and display error. The workflow needs to trigger on status change and then within the workflow first check if the status is active.

    community.dynamics.com/.../using-real-time-workflows-to-show-error-messages

    Hope this helps.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans