+ Start a Discussion
Pavel UtkinPavel Utkin 

runtime_sales_lead__convertDesktopConsole

Hi there,

I develop a custom component to call standard lead convert action.
I found this component runtime_sales_lead__convertDesktopConsole.
It works well. But Cancel action does not work. (See screenshot).

I call this component with parameters.

urlEvent.setParams({
"url": baseURL + '/lightning/cmp/runtime_sales_lead__convertDesktopConsole?leadConvert__leadId=' + recordId+ '&ws=%2Flightning%2Fr%2FLead%2F'+recordId+'%2Fview'
});

Maybe I should add a return URL for your component?
Can you send me a specification for this component with all parameters to solve this issue?User-added image
AnudeepAnudeep (Salesforce Developers) 
The way you are using urlEvent.setParams looks good as per the example in the documentation

I suggest changing the URL to a simpler URL to confirm if the issue is with the URL used itself
AnudeepAnudeep (Salesforce Developers) 
({
navigateToParameterValueA : function(component, event, helper) {
var urlEvent = $A.get("e.force:navigateToURL");
var address = '/test-detail?id=A';
urlEvent.setParams({
"url": address,
"isredirect" : true
});
urlEvent.fire();
},
navigateToParameterValueB : function(component, event, helper) {
var urlEvent = $A.get("e.force:navigateToURL");
var address = '/test-detail?id=B';
urlEvent.setParams({
"url": address,
"isredirect" : true
});
urlEvent.fire();
},

Can you try defining a variable and assigning a URL to it? Also add "isredirect" : true
Pavel UtkinPavel Utkin
@Anudeep thank you. But it doesn't work at all.
When I click Close button, I see in console Uncaught (in promise) Error: API `closeTab` is not currently supported in this application.
My url - /lightning/cmp/runtime_sales_lead__convertDesktopConsole?leadConvert__leadId=00Q1w0000048fRzEAI
Andrey VozdiganAndrey Vozdigan

Hello @Pavel Utkin, May I ask you do you find the solution of "API `closeTab` is not currently supported in this application"?

I found the same Issue and cannot find the answer.

Rakesh ChattyRakesh Chatty
Hi @Pavel, I'm also same issue as above and unable to fix it. Any suggestions how to fix it.