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

Announcements

News and Announcements icon
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,323 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Nagaraju_Matta Profile Picture

Nagaraju_Matta 123

#2
Hamza H Profile Picture

Hamza H 96 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 66 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans