Questions tagged [workspaceapi]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 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
1answer
33 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
1answer
38 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
1answer
26 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
1answer
53 views

Workspace API issue how to close the multiple subtab

Hi I need some assistance for one of the scenario, i am trying to open a ABC LWC(Target) Component from another XYZ(Source) Lightning Web Component in which target ABC LWC is Wrapped inside the aura ...
0
votes
0answers
54 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
0answers
23 views

I am trying to clear the cache memory by using force:refreshView. But event is not working in Service console

I am trying to refresh my lighting page. I have a VF page inside the lighting component on click of button a parent.postmessage() is send to VF page. The refresh is not working the cache memory is not ...
0
votes
0answers
53 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
0answers
20 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
0answers
25 views

Update Subtab state parameters programatically

We are working on a lightning component that will be opened on a subtab and we pass few parameters initially as part of the state property to the component. There is a usecase where we are creating a ...
0
votes
0answers
36 views

Is their any way by which we can Export Content from a Salesforce CMS workspace and Import the same content to another Workspace?

I have a requirement, In which I need to export content of one salesforce CMS workspace to another CMS workspace, I crawled the internet but found nothing helpful. Their were some ideas regarding ...
0
votes
0answers
27 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
206 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
218 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
42 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
51 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
100 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
215 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
3answers
1k 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
409 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
1answer
441 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
43 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
1answer
2k 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
1k 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
78 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
56 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
378 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
0answers
374 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
429 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
96 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
2answers
917 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
378 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
628 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 ...