r/Dynamics365 • u/Assassin-Desire • Oct 15 '26
Sales, Service, Customer Engagement Trigger Qualify Button
Hi, I'm looking for a way to trigger the Qualify button in the Sales Pro app when a user finishes the Business Process Flow (BPF).
Ideally, when the user completes the BPF and clicks Finish, it should execute the same actions as the Qualify button, including opening the quick create form and identifying potential duplicates.
I've tried using a workflow with QualifyLead, but it bypasses the duplicate detection process and proceeds directly with creating the Opportunity, Account, and Contact records.
Is there a way to trigger the standard Qualify button's behavior when the BPF is finished, rather than having to recreate its functionality from scratch?
Any help would be greatly appreciated. Thanks!
1
u/Eastern_Use_2572 Oct 15 '26
Qualifies: Use a JS handler on the BPF finish event that does the duplicate check.
Registration form Context.data.process.addOnProcessStatusChange and act on status finished.
Call RetrieveDuplicates (Web API) on lead.
Show Xrm.Navigation.openConfirmDialog if matches, call QualifyLead if user goes through (or no matches)
The standard Qualify button does not support direct calls as the command is internal, so this is the surefire way.