Questions tagged [workspaceapi]
The workspaceapi tag has no usage guidance.
44
questions
0
votes
0
answers
54
views
Aura - component.find() called from Promise Returns undefined
I have an Aura component that I'm using as a wrapper for an LWC so that we can utilize the Workspace API (we haven't enabled Lightning Web Security in the org yet). Before opening the workspace tab, I ...
0
votes
1
answer
262
views
LWC Control Workspace Tabs and Subtabs (Beta) on Dev Org
Are the Beta features enabled on Developer Orgs? I wanted to play around new Workspace API for LWC, enabled LWS on my DevOrg. Deploying such component
import { LightningElement } from "lwc";
...
0
votes
0
answers
50
views
Workspace API subtab showing Title as Loading
Even after setting the label in workspace api, I can see the label set to Loading... of the subtab. Below is the code I am using :
var workspaceAPI = component.find("workspace");
...
0
votes
1
answer
104
views
WorkspaceAPI close tab
I have a aura component call myComponent that opens a tab with WorkspaceAPI:
myComponent
myComponent : function(component) {
var valueName = component.get("v.valueName");
var ...
0
votes
1
answer
207
views
Lightning tab with LWC name stuck in "Loading"
I created a lightning tab with a LWC and the name of the tab is stuck in "Loading.." in apps such as console, when I search about that, I saw that the most used way to correct this is put ...
0
votes
2
answers
248
views
API openTab is not currently supported in this application
I have below aura component added on the account record page from the app builder
HTML:
<aura:component implements="flexipage:availableForAllPageTypes">
<lightning:workspaceAPI ...
0
votes
1
answer
42
views
Single Currency Org, How to display (AUD) next to currency field on Opp object?
I'm an Admin on a single currency org, set to Australia (AUD). Client would like the currency to display next to the currency field. Apart from enabling multi, is there another way to be able to ...
1
vote
0
answers
526
views
Unable to close tab with Aura/workspace API
I've read that the only way to close a Salesforce console tab in lightning experience is via the workspace API using Aura (Link).
I've tried to implement the provided sample code but it doesn't work, ...
0
votes
0
answers
1k
views
Open LWC component in a subtab using Aura (workspace API)
Considering the fact that LWC does not support workspace API, I have been trying to implement subtab opening feature by wrapping my LWC in a parent aura component. I have utilized workspace API for ...
1
vote
1
answer
171
views
Alternative to workspaceAPI in LWC?
I have a LWC on a tab and when I open on a console app the title stuck on "Loading..". The workspaceAPI is the alternative, but it don't work on LWC. How to handle it?
It's that any way to ...
0
votes
0
answers
138
views
setTabLabel() not working as expected for subtab
We have used setTabLabel() for a subtab that opens on a custom button.
Below is the code in init method for button click action.
doInit : function(component, event, helper) {
var ...
0
votes
1
answer
240
views
Lightning Console/Workspace API: Determine if a Record should be opened as Workspace Tab or SubTab
Lightning Console allows Admins to configure if a record should be opened as a (Primary/Workspace) Tab or a Subtab via Navigation Rules
Is there a way to find out programmatically if my record should ...
2
votes
1
answer
3k
views
Open Record Specific LWC Subtab
I am trying to get a Lightning Web Component to open a new subtab containing another Lightning Web Component. Our team has already established a hidden utility bar component which listens for post ...
2
votes
0
answers
438
views
Refresh sub tab when open It
I have a quick action button on Opportunity that called Create Offers which call a Lightning Component that create Offers and open the related list(Offers__r) in a sub tab.
This code working, but ...
0
votes
1
answer
578
views
lightning:tabClosed event throwing error when calling apex method
I am calling apex method on lightning:tabClosed event to update a record on closing the tab. I can see the record Id being passed to controller method but query is throwing an error saying
{"...
1
vote
2
answers
2k
views
Alternative to Workspace API for LWC
According to Lightning Experience Roadmap there is no hope for support Console Workspace API with Lightning Web Components in near future. When we create LWC application for Salesforce Console - one ...
0
votes
1
answer
1k
views
How to set lightning tab label and maintain it for each call?
I have a LWC component on case page with button called Search, which does a callout and calls another LWC through Aura, that is opened as new tab in the same window, like this:
As you can see, within ...
1
vote
0
answers
793
views
Close Aura Workspace Tab & Opening Another Throws processReplaceSubtabPage Exception
I have a Lightning record-page that is displayed to users, which contains an Aura component wrapping some Lightning Web Components.
When this operation runs, it works but I am somewhat randomly ...
0
votes
1
answer
593
views
Lightning Component (hidden) on a record page is getting fired even after the Record Tab is closed
I created a lightning component to close the console tab and i want to do this whenever its child objects' field (status__c) is changed to "Completed". I am using setInterval to check the ...
0
votes
1
answer
2k
views
Open Tab using Workspace API
I am getting error while trying to use workspace api and open tab using lightning quick action. I created a flex page and Assigned it to two different Apps in salesforce one standard service console ...
-1
votes
1
answer
822
views
Close sub Tab on Account Change from Workspace API [closed]
Hi I need some help on the situation as whenever someone change the Account then if subtab is open then it should close...
0
votes
0
answers
489
views
Close the tab from workspaceAPI
Hi I need some assistance for one of the scenario, i am trying to open a ABC LWC Component from
another XYZ Lightning Web Component in which target XYZ LWC is Wrapped inside the aura Named as qwert ...
0
votes
1
answer
896
views
LWC reopen the same tab with workspace API
Hi I need some assistance for one of the scenario, i am trying to open a LWC from another LWC in which target LWC is Wrapped inside the aura component. the problem is that whenever user clicks new tab ...
0
votes
1
answer
881
views
Changing the label of the AURA component tab from workspace API
I am able to change the label of the TAB of the target aura component in salesforce by the help of the workspace API, but still label and whenever user hover over it says Loading screen. below is my ...
0
votes
2
answers
2k
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
0
answers
330
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
1
answer
477
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.
...
7
votes
5
answers
10k
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
0
answers
1k
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 ...
2
votes
1
answer
1k
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
1
answer
106
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
1
answer
3k
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:...
2
votes
1
answer
4k
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
0
answers
176
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
0
answers
155
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
1
answer
3k
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
1
answer
761
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 ...
2
votes
1
answer
903
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 ...
1
vote
1
answer
968
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
1
answer
3k
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
0
answers
130
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
2
answers
2k
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
1
answer
903
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
1
answer
958
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 ...