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

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;
        component.set("v.recordId", recId);
        var action = component.get("c.getRecordTypeValues");
            "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);
AbhishekAbhishek (Salesforce Developers)

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.

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