Questions tagged [consoleintegrationtoolkit]

Questions about the JavaScript toolkit for building integrations with the Salesforce Console.

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

How to handle error of sendmessage() of the conversationToolkitApi?

No matter how I try to catch the error of this function - with a catch clause or try/catch block, it always gives me "Uncaught (in promise) " message in the console and doesn't get to the ...
Al Cher's user avatar
  • 254
0 votes
0 answers
206 views

Why are calls to the service console integration toolkit failing on some browsers?

I have the following code on a visualforce page which I view through the Service Console, the idea being to close this tab and navigate to another. sforce.console.getEnclosingTabId(function (...
AidanD's user avatar
  • 151
1 vote
0 answers
94 views

Problems with Salesforce Console Integration Toolkit

My package has a VisualForce page that is used in the OpenCTI Softphone that includes <apex:includeScript value="/support/console/45.0/integration.js"/> I use it for opening records and open ...
galskab's user avatar
  • 11
2 votes
1 answer
2k views

window.postMessage does not work in lightning console app. Any workaround?

We have an flexipage/app which have 5 lightning components on it. Out of these 5, 3 are lightning component and 2 are visual force pages embedded inside lightning component. I went through https://...
Nagendra K S's user avatar
0 votes
1 answer
2k views

How to open console tab from within a visualforce on a page layout?

Classic console. The visualforce page renders a single button that passes an valueto another visualforce page to launch an existing process that the client does not want to be modified. This code ...
Allen Mann's user avatar
  • 1,092
0 votes
0 answers
96 views

Service Console - update tab's pageInfo after redirect

Suppose I have page PageA opened in a Salesforce Classic console tab. Then I use a controller method to redirect to PageB: public PageReference redirect(){ return new PageReference('/apex/PageB');...
mmm321321's user avatar
  • 639
5 votes
1 answer
1k views

Can Lightning WorkspaceAPI be used to Open tabs in Visualforce Pages?

Can Lightning WorkspaceAPI be used to Open tabs in Visualforce Pages? I have a custom console app that incorporates the integration toolkit function for opening tabs/subtabs involving multiple ...
Aditya Ghosh's user avatar
1 vote
1 answer
923 views

OpenPrimaryTab fails with salesforce.com URL

I'm trying to use the console integration in a visualforce page and just tested the URL 'https://www.salesforce.com' using the example from 'https://resources.docs.salesforce.com/210/latest/en-us/sfdc/...
bl4kh4k's user avatar
  • 113
0 votes
1 answer
831 views

Understanding opensubtab functionality along with javascript

I am trying to implement opensubtab functionality. Below is my code: <apex:page id="pg" controller="testSetRedirect"> <apex:includeScript value="/support/console/41.0/integration.js"/> &...
starhunter's user avatar
0 votes
0 answers
270 views

how can lightning components in a console communicate with each other

We want to migrate / update our Classic Service Cloud console to a lightning console. We have quite a lot of visualforce pages in our current (classic) console that communicate with each other through ...
KoenVM's user avatar
  • 2,416
1 vote
1 answer
776 views

Issues with opensubtab functionality.

I am trying to open a VF page as a subtab through a commandButton opensubtab in the VF page ParentVF. While the subtab opens for the first time, but if the opened subtab is cancelled/closed and the ...
starhunter's user avatar
0 votes
0 answers
137 views

Subtype in console overrides existing subtab

I have the clone button on case(overriden the standard clone button) which opens a cloned case as a subtab in console.However when the clone button is clicked on the newly created case a new subtab ...
starhunter's user avatar
0 votes
1 answer
35 views

Service Cloud Development what method to get the

How can I get the ID of the record regardless of the type of tab that is displaying a custom button. For example at the minute I have a button on an Order object that gets the ID like so: {!...
sfdc_beginner1's user avatar
0 votes
0 answers
85 views

Can I call Console Integration Toolkit Functions from an Object Specific Quick Action?

I am currently working on a service console feature where I want to embed a Lightning component in a Visualforce page using the Lightning Out library. I need to pass a case record id to the Lightning ...
Daniel Fuller's user avatar
0 votes
1 answer
30 views

Console API - Sidebars IDs

We're trying to show/hide some console sidebars components. Looking through the documentation, we found the following method signature: sforce.console.setSidebarVisible( visible:Boolean, (optional)...
Daddy Pumpkin's user avatar
0 votes
1 answer
441 views

how to write lightning Component for JavaScript Button which contains sforce.Console.openSubtab() functionality?

we are having JavaScript Button in salesforce classic that contains functionality of {!requireScript("/soap/ajax/31.0/connection.js")} {!requireScript("/support/console/31.0/integration.js")} {!...
anil's user avatar
  • 1
0 votes
1 answer
359 views

Bottom bar in service console

I have added a Bottom bar (visual force Page) to the contact layout in service console. I need to minimize this bottom bar conditionally in the VF page.
Karthiga's user avatar
0 votes
1 answer
68 views

Issue with Integration Toolkit setSidebarVisibile

I am trying to run the following script in my Visualforce Page in my Developer Org: <apex:page controller="SidebarTestController"> <!--<apex:includeScript loadOnReady="true" value="/soap/...
Rooster's user avatar
  • 43
2 votes
1 answer
233 views

Problem Hiding Sidebar using JavaScript

In my Developer Org, I am trying to use the code pertaining to displaying and hiding the Sidebar located here. This is my code (not too much different): <apex:page > <apex:includeScript ...
Rooster's user avatar
  • 43
2 votes
1 answer
691 views

isInConsole() Showing False in embedded VF Page

Long Story short no matter what i do i cannot make this salesforce method work. Please help me shine some light on what i am doing wrong so i can work on creating subtabs from an Account page inside ...
Justin Price's user avatar
2 votes
1 answer
905 views

Issue in console event listener

I have recently enabled omnichannel in our org. I need to perform some action when an agent accepts a post from the omnichannel widget in the console. To do this I added a hidden custom console ...
SFDC Learner's user avatar
0 votes
1 answer
115 views

Help with Salesforce Console Integration Toolkit: focusing sidebar component tab from different tab in same component

Does anyone have experience with the Salesforce Console Integration Toolkit, specifically the focusSidebarComponent() function. I have a few different VF pages displayed in the sidebar (CustomerKb (id=...
McWiskers's user avatar
1 vote
1 answer
258 views

Custom Javascript Button Issue (Not throwing error)

I have a custom javascript button which has to check for a value in custom field on an object record and has to perform the functionality. In this case, if the field value is not null, it has to ...
SFDC_BigDog's user avatar
1 vote
1 answer
2k views

Close Tab automatically in Service Cloud Console

I have a script which opens a new page in a new sub-tab on the Service Cloud Console, and another one that closes that same new page once it's done loading. It works, but I need to click on the '< ...
Json's user avatar
  • 1,587
3 votes
1 answer
1k views

sforce.console.isInConsole() not working (returns false even in Console)

I am trying to navigate to a VF page on click of a (Formula field) field from list view. Now my requirement is to navigate to standard detail page of Site record when clicked from standard list view ...
Shankar Pallenti's user avatar
0 votes
1 answer
382 views

Salesforce - Console Integration Toolkit : openSubTab: Invalid ID: scc-st-0

I'm experiencing a weird js error while trying to run the openSubtab() salesforce console integration API method. This is my method call : sforce.console.openSubtab(ctiTabId, theURL,true,'{!Case....
user avatar
0 votes
1 answer
1k views

openPrimaryTab function does not work

I used the visualforce example here This however gives the code: <apex:includeScript value="/support/console/37.0/integration.js"/> <script type="text/javascript"> function ...
Johan de Wild's user avatar
0 votes
1 answer
383 views

sforce.console.refreshPrimaryTabById() is not refreshing tab within managed package

I have my own released managed package which is installed on dev environment. I have created VF page on this environment and included Visualforce component from managed package there. The VF component ...
Oleksander Vlasenko's user avatar
2 votes
0 answers
443 views

sforce.console.refreshPrimaryTabById is not refreshing feed publisher

have developed a VF form and put it in a quick action & assigned it to case page layout. I am refreshing the current case tab by using console integration toolkit at submit button's oncomplete ...
TSunar's user avatar
  • 197
1 vote
0 answers
315 views

Hiding Live Agent widget in Service Console

I have created a custom console component to use for Live Agent, using the Salesforce Console Integration Toolkit Developer Guide. I have added it to my console. It is working fine. Now that I am ...
hamayoun's user avatar
  • 2,747
3 votes
2 answers
1k views

Console method to get selected tab on VF page

I've custom console component(simple VF page) created for console app. I can grab the case id based on the tab selection but its not working for the very first time the page loads. When I select the ...
Muthu Samy's user avatar
0 votes
1 answer
319 views

Console Integration Toolkit: OnCallbegin() does not fire

I am following this guide: https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_oncallbegin.htm I have added the sample script to a vf console component ...
Christian Szandor Knapp's user avatar
1 vote
0 answers
129 views

How to use the console integration toolkit to determine if user is chat capable?

We have a custom button that uses the console integration toolkit's sforce.console.chat.getDetailsByPrimaryTabId method to determine if the button is being clicked in the context of a chat, or not. ...
Mike Ginou's user avatar
1 vote
0 answers
2k views

Primary Tab refreshes in console and Sub tab (VF page) reopens again after Refresh

I have an issue. My requirement is this, I have a VF page which opens from a custom button located on a Case Detail page. The VF Page has a CommandLink and a CommandButton which performs certain ...
AjaySFDC's user avatar
  • 618
1 vote
2 answers
3k views

Refresh the whole service console from visualforce page

I want to refresh the entire service console on clicking of the save button on the visual force page. The button is an inline visual force page. Any ideas? <apex:includeScript value="/soap/ajax/26....
Vetriselvan Manoharan's user avatar
1 vote
1 answer
149 views

Is there a unique session ID for a primary tab in Service Console?

I am trying to implement an account verification module and there are requirements to not verify a customer when they are reopened under the same primary tab (and they have already been verified). I ...
David Dawson's user avatar
  • 1,204
0 votes
1 answer
3k views

getEnclosingPrimaryTabId: Cannot get workspace from frameId: ext-comp-1017

Im trying to refresh the primaryTAB after Subtab close, and getting error " getEnclosingPrimaryTabId: Cannot get workspace from frameId: ext-comp-1017 ServiceDesk.js:304 refreshPrimaryTabById: Invalid ...
KrForce's user avatar
  • 446
0 votes
1 answer
765 views

Service cloud console auto close Primary Tab after 5 sec

I have a visualforce page section in service cloud console, section has VF buttons which opens the PrimaryTab. I want to auto close the newly opened PrimaryTab after 5 sec, is it possible add timer ...
KrForce's user avatar
  • 446
1 vote
1 answer
368 views

Salesforce Console event not sent successfully when reloading page

I'm working in the Salesforce Service Console with the console integration toolkit. This allows us to fire (HTML5) events with the sforce.console.fireEvent() command. I firing an event from one ...
abd3721's user avatar
  • 2,152
0 votes
1 answer
2k views

Salesforce Console: How can you get subtab ID by its name?

I'm hoping to override/refresh a particular subtab if it already exists, or open it as a new subtab if it doesn't exist yet. However I can't seem to find a way to get subtabs by name. The console ...
Jan Julian's user avatar
  • 2,624
1 vote
2 answers
6k views

Get Object Id of the currently open primary tab on a custom console component through apex controller

I have a custom console component on which I want to display the details of the active primary tab (e.g. Id, Name, Email, CaseNumber etc), which can be a case details or contact details depending on ...
ConsoleUser's user avatar
1 vote
1 answer
61 views

Can a custom console component modify standard pages?

Is it possible to use a custom console component to alter standard pages, much like the old ways of inserting javascript through home page components?
Jan Julian's user avatar
  • 2,624
1 vote
0 answers
383 views

Visualforce and Console Integration Toolkit results in Cross-Origin Framing error

I'm working on an App-level console component that has links in it. Those links should open new tabs (preferably in the console layout, but a new browser tab works as well) not on the Salesforce ...
zainogj's user avatar
  • 1,854