+ Start a Discussion
GraciaGracia 

when I am overriding the Lighting component ..its working fine in service console but its not refreshing in Sales cloud.Kindly help

({    
    doInit : function (component, event, helper) {
       
        var pageRef = component.get("v.pageReference");
        var state = pageRef.state;
        var base64Context = state.inContextOfRef;
        if (base64Context.startsWith("1\.")) {
            base64Context = base64Context.substring(2);
        }
        var addressableContext = JSON.parse(window.atob(base64Context));
        var recId= addressableContext.attributes.recordId;
        console.log('recId>>>>>',recId);
        component.set("v.recordId", recId);
        component.find("caseRecordLoader").reloadRecord();
        
        var action = component.get("c.getRecordTypeValues");
        action.setParams({
            "objAPIName": 'Contact'                     
        });
        action.setCallback(this, function(response) {
            var state = response.getState();
            if (state === "SUCCESS") {
                var result = response.getReturnValue();
                var recordTypes = result.recordTypes;
                var recordtypeMap = [];
                for(var key in recordTypes){
                    recordtypeMap.push({label: recordTypes[key], value: key});
                }
                component.set("v.recordTypeMap", recordtypeMap);
                component.set("v.selectedRecordTypeId", result.defaultRecordTypeId);
                
            }
        });
        $A.enqueueAction(action);
    },
    
AbhishekAbhishek (Salesforce Developers) 
https://developer.salesforce.com/forums/?id=906F0000000AujTIAS

Your query is answered in the above developer discussion check it.


Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.
GraciaGracia
But I have a problem in sales console,,,its not refreshing in sales console.Your above link is not helpful.If you have any other alternate.Kindly share