0

We were using standard lightning component force:workspaceAPI for opening new subtab in Service console. It was working fine till this morning.But now it showing below error:

No COMPONENT named workspaceAPI found

Please anyone guide us how to open subtab in Lightning service console. We tried also force:workspaceAPIAccess but no luck

<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
    <force:workspaceAPI aura:id="workspace" />
    <lightning:button label="Open Tab" onclick="{! c.openTab }" />
</aura:component>
({
    openTab : function(component, event, helper) {
        var workspace = component.find("workspace"); 
        workspace.openTab({
            url: '/sObject/001R0000003HgssIAC/view', 
            focus: true,  
            callback : function(error, response) { 
                workspace.focusTab({tabId : response});  
            }
        });
    },
})
1
  • is this resolved, seems this doesn't work as in the docs
    – Hasantha
    Commented May 14, 2018 at 6:17

1 Answer 1

1

This seems to be fixed now. Please note that the component name changed from

<force:workspaceAPI aura:id="workspace" />

to

<lightning:workspaceAPI aura:id="workspace" />

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .