Questions tagged [workspaceapi]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

Salesforce lightning component - Overriding sub tab Icon

Issue: I am trying to override the highlighted standard loading icon beside the newly opened subtab. workspaceAPI.setTabIcon({ tabId: focusedTabId, icon: ...
0
votes
2answers
51 views

“worksaceAPI.openTab()” equivalent for lightning web components?

How can the workspace API's "open tab" functionality be achieved with lightning web components? I've only seen this functionality described for aura components in the documentation.
0
votes
0answers
39 views

CloseTab() is not working when sending customEvent from LWC

I am calling a Lightning Component wrapped in VF through a detail page button and that is openened in a subtab whenever that custom button is clicked. Now, I am trying to close that subtab when ...
0
votes
0answers
33 views

Open subtab one after the other in Lightning Service Console using Workspace API

Is there any limitation of opening multiple subtabs as below using Workspace API? It doesn't throw any error but simply it doesn't open the second subtab for new task while all the console logs get ...
0
votes
0answers
41 views

Unable to use lighting navigation or WorkspaceAPI in console app

The console application I am migrating to LWC is designed as follows. When a call comes, CTI launches a VF page. VF page creates a lightning component inside it. lets call it 'wrapper'. (VF page was ...
0
votes
1answer
55 views

Remove highlight from current tab when button is clicked again, I am using setTabHighlighted() to highlight current tab

I have created aura component to highlight tab onclick of button and it is working as expected. But I want to remove that highlight from tab when button is clicked again, not sure how to do this. ...
0
votes
0answers
78 views

WorkspaceAPI :closeTheTab : Facing issue while closing the tab if closeTheTab is used to disable close event and Component error causes tab to persist

I have used workspace API in lightning service console to open child components in other tabs:-- Once a click openComponent button on parent, another tab opens with another component. Do init of ...
2
votes
1answer
372 views

Is there a alternative for WorkspaceApi in LWC?

Background & The Problem We have a custom grid lwc which i am using to display data from two different objects (EmailMessage & CustomObject). Now, I want to navigate the user to a new tab ...
1
vote
0answers
275 views

WorkspaceAPI OpenSubTab Focus not working

I am having an issue with the focus feature in the openSubtab method of the workspaceAPI and was wondering if this is working as intended or not. I am following the developer documentation from this ...
0
votes
0answers
259 views

How to refresh Primary tab in lightning component

I'm facing with the following issue: Iv'e created lightning component (launched by quick action), then when pressed - opens new sub tabs (opportunity record and vf page). What i'm trying to achieve ...
2
votes
1answer
270 views

Workspace API use OpenTab() to open existing tab using pageReference

I'm opening a tab using workspace API openTab() with pageReference passing some values within state. Then I want to open the same tab by clicking a different link and passing different parameters. ...
0
votes
1answer
29 views

Theme4u Console not getting returned by Quick Action

I am trying to determine whether the user is in Lightning Console when they select a Quick Action (Lightning Component) but it comes back as regular Lightning UI no matter if the user is on a Console ...
0
votes
0answers
114 views

Workspace tab is not refresh after closing subtab

I need to refresh the workspace tab after closing the current subtab. But it's not happening as expected. Below is my code. var workspaceAPI = component.find("workspace"); ...
0
votes
1answer
1k views

How to pass record id to a lightning component when it is opened as subtab [closed]

I want to pass recordId on click of a button which opens a lightning component as subtab. Here is the code I tried, but no luck though recordId attribute is there in sub-tab documentation. Controller:...
1
vote
1answer
640 views

URL Type for Lighting:Datatable opens in new tab in console navigation

I'd like to have my datatable links open in a new sub tab when my users are using console navigation, but somehow they always open in a new tab. Here's the column definition for the link field: { ...
1
vote
0answers
73 views

WorkspaceAPI not working in Lightning component, if component is using lightning out app

as lightning components are not supported in List view button, i have used lightning out to serve the purpose, but WorkspaceAPi is not working in Lightning component as it using lightning out. i need ...
1
vote
0answers
40 views

lightning :navigation or :workspaceapi? What's my best option?

I see the Lightning docs demonstrate using <lightning:navigation aura:id="navService"/> with workspaceAPI here: https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/...
2
votes
1answer
2k views

Aura Wrapper to LWC: record-id of lwc to recordId mapping

I have an AuraComponent that wraps an lwc component for the purpose of using the workspace API. AuraComponent can see the recordId. In LWC component the recordId is always undefined. I have checked ...
0
votes
1answer
315 views

Lightning PageReference Object Passing Field Values in standard__object

I am launching a Subtab using the Lightning Workspace API, and using an Aura pageReference object to specify that I want to create a new Task. I want to pre-populate the WhatId on the Task when the ...
0
votes
0answers
258 views

Lightning Component Getting Fired Twice When Opening via Workspace API

I have a list of items in one component where once you click on a given item it should open another subtab with a second component. For some reason the new subtab opens and the component getting fired ...
0
votes
1answer
354 views

Cannot open multiple times lightning component content as subtab in Lightning Console with different params by using workspaceAPI.openSubtab

I want to open multiple subtabs with lightning component content in lightning Console with different parameters. Each time I call openSubtab, a new subtab should open event if there is already a ...
0
votes
1answer
2k views

how to refresh the source tab when the current tab is closed

I have a button "Create Activity" in a lightning component (say LC1) on the case lightning record page. When I click that button, an another lightning component (say LC2) opens as a sub tab with some ...
0
votes
0answers
87 views

Cannot open Tab from another Primary tab

I am trying to open a primary tab from another primary tab where the url is a flexi page. It is refreshing the URL of new tab but not opening another tab which is my requirement. Using workspace api ...
0
votes
1answer
793 views

Subtab open using workspace API

In one of my scenarios, we need to open a flexipage as a new subtab on click on some text link. Let's take there are list of records like 0001 , 0002, 0003 On click on 0001 we need to open a new ...
2
votes
1answer
309 views

Is it possible to open a Lightning Tab with Workspace API without URL Parameters

I am making a call using the workspaceAPI to open a new tab in a Lightning Workspace. I am passing a number of variables via the state parameter, which appear in the URL as parameters after the tab is ...
3
votes
1answer
566 views

Open New Tab in Lightning Out?

Scenario: I want to create a List Button which displays a Lightning Component. The only way to implement this step is to use a Visualforce Page which uses a Standard Set Controller, then use ...