function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Surender reddy SalukutiSurender reddy Salukuti 

how can we call component after navigating to record detail page ?

Hi all ,
I have a one requirement i am converting account to lead by using quick action component after convertion navigating to record page   this requiremnet i have completed but after navigating to record page i need to call custom quick action component and open popup how can i do this ,
please find the below code for your reference .

handleClick : function(component, event, helper) {
       component.set('v.showProgressbar', true); 
        var recordid = component.get("v.recordId");
         var action = component.get("c.convertlead"); 
        action.setParams({
            recordId : component.get("v.recordId")
        });
        action.setCallback(this, function(a) {
            $A.get("e.force:closeQuickAction").fire();
            if (a.getState() === "SUCCESS") {
                var output = a.getReturnValue();
                component.set('v.showProgressbar', false);
                component.set('v.accountid',output);
                var navEvt = $A.get("e.force:navigateToSObject");
                navEvt.setParams({
                    "recordId": component.get("v.accountid")
                });
                navEvt.fire();
            }
            else if(a.getState() == "ERROR"){
                 var errorMsg = a.getError()[0].pageErrors[0].message;
                var toastEvent = $A.get("e.force:showToast");
                toastEvent.setParams({
                    "type" : "error",
                    "message": errorMsg
                });
                toastEvent.fire();
            }
            
        });
        $A.enqueueAction(action);
        
    },