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 :
Customer experience | Sales, Customer Insights,...
Answered

How to add a Custom Command to Qualify Button within Lead WITHOUT overriding CommandCore

(0) ShareShare
ReportReport
Posted on by 30

Hello!

 

I am currently attempting to add a custom Command to the Qualify button found within the Form of the Lead entity. I am doing this through the 3rd party tool called Ribbon WorkBench. 

Below is a screenshot of the Buttons properties

 

 3730.pastedimage1617979076211v1.png

 

However, when I add my Custom Command, the CommandCore is overwritten. This causes the OOB functionality of the Qualify to no longer work.

 

 6087.pastedimage1617979087468v2.png

 

From what I understand the CommandCore references an OOB command which allows the Qualify button to show its popup box.

 

Is there some way to append my custom JavaScript I wrote for my Command, to the CommandCore? I am unsure how to work around this issue.

I have the same question (0)
  • Verified answer
    Wahaj Rashid Profile Picture
    11,321 on at

    Hi,

    Thank you for your query.

    This depends on your requirement, do you need to call a script after Qualify dialog appears or after?

    Here are solutions as per your requirement:

    • Run you JS Code before Qualify Lead code runs: create a custom button and command, call a JavaScript Action to your function. In you JS function, call the following script to run OOB Qualification process:

    function myQualifyAction() {
    
        // Your code goes here
        
        // Out-of-the-box qualify code
        Mscrm.LeadCommandActions.qualifyLeadQuick();
    
    }

    Please note, I would recommend to hide the existing Qualify Lead button, and you do not need to include any libraries to call built-in qualify lead function.

    •  If you need to inject your code after qualification, that is not possible with JS, for you you need to register a plugin or process.
  • pobrien Profile Picture
    30 on at

    Hi Wahaj,

    Thanks for your response. That worked for us.

    Paul

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans