3
votes
Accepted
How do I Call Methods in the Console Integration Toolkit from a Lightning Component?
Here is a small experiment as a proof of concept to emit events from lightning component and handle in VF
<aura:component>
<div> Hello World !!!! </div>
<aura:registerEvent ...
3
votes
VF page doesn't show the fields
It seems you're passing the record ID of some other object to the page, not a task. The prefix for a task ID is 00T, you have a02 which leads me to believe you're passing the ID of a custom object ...
3
votes
Recordtype and Pagelayout
Answering your two questions:
Is it possible to have the record type in the same page layout of the
task? If so, how can i accomplish it?
No, by standard way, it first asks for RecordType then ...
3
votes
Accepted
getAllTabInfo Iterate through response
Your console log should give you all the information you need to loop through and close the tabs based on a title.
You can try something like this, and it will work, but please build off of this ...
3
votes
Accepted
LWC: Invalid event type "WireContextEvent" dispatched in element
LWCs are not fully supported in the Console at the time. You will need to put your LWC in an Aura Component wrapper for it to work. See the LWC Developer Documentation for more on this. I would expect ...
2
votes
Get Object Id of the currently open primary tab on a custom console component through apex controller
It sounds like what you're getting is the ID of the tab when what you really want is the ID of the object.
For this you can use sforce.console.getFocusedPrimaryTabObjectId instead of sforce.console....
1
vote
How do I make a console footer open a new tab?
You're essentially creating a component that "executes" a script and closes. This is very similar to creating a headless flow that runs from within the component in that your JS runs on Init to find ...
1
vote
Accepted
Finish Button on Flow reloads iFrame holding VF Flow Component
Interesting concept.
I can see a couple ways of handling this. The best is probably to handle the flow's status change event in your Lightning component:
<lightning:flow aura:id="flowData" ...
1
vote
Pass related record Id to custom component in lightning record page
Not if you are using the OOTB Related list, as there is no way of triggering an event when the record is selected, you will most likely need a Custom Related List Component, allongside a custom event ...
1
vote
Service cloud console: refresh custom console component when moving to different subtab
You can perform some action when a new subtab is selected via sforce.console.onFocusedSubtab. It looks like this:
sforce.console.onFocusedSubtab(
result => doSomething({ objectId: result....
1
vote
Accepted
Warn on closing console tabs from console component
This code from documentation 'setTabUnsavedChanges()' worked from me:
Note: Using /support/console/40.0/integration.js because in my dev org 41.0 in URL doesn't work. Also you do not need to paas the ...
1
vote
In service console, how to tell when user switches to navigation tab or closes all tabs
You have to call sforce.console.getFocusedPrimaryTabId() again in OpenSolution() method before if conditions, then it will take correct primaryTabIdxRt
function openSolution(recURL) {
sforce....
1
vote
Accepted
Console component tries to open in subtab when primaryTabId is null
I have taken your code done a small change and it is working as expected.
For shake of my testing, rather than solutions, I am opening a hardcoded Lead record.
Before clicking on Click Here url, I ...
1
vote
Visualforce Error: Unknown property 'Store__cStandardController.Store
Assuming the relationship name from Store__c to Associate__c is called Associates, then the line you need is
<apex:pageBlockTable value="{!Store__c.Associates__r}" var="Ass">
N.B. use of an ...
1
vote
Setting up Related List on Console
You are using Bottom Sidebar(Interaction Log), that may be the issue. There is another Bottom Sidebar exists. Use that.
1
vote
Accepted
Opening and closing custom console components
You can use setVisible to collapse the phone component if it's the openCTI softphone: https://developer.salesforce.com/docs/atlas.en-us.api_cti.meta/api_cti/sforce_api_cti_setvisible.htm.
If that ...
1
vote
display list of cases related to contact on service console left sidebar
The console provides an out-of-box related list sidebar to help with this without needing code. It will display a related list in a sidebar of the page layout you configure it on. You can edit the ...
1
vote
how to open a link in in new tab in console application?
If you want your page to work both in and out of the console, you can adopt something like the following. Here is a brief explanation of why you should use IIFE structure.
(function (c, d, w) {
//...
1
vote
Console method to get selected tab on VF page
You want getFocusedSubtabObjectId.
sforce.console.getFocusedSubtabObjectId(new function (result) {
console.log(resul.objectId);
}
On a side note, why reinvent the wheel? Just grab the caseId ...
1
vote
Open subtab from Console Primary Tab Component
The first parameter into openSubtab requires a single primary tab ID. The value result.ids which is returned in the callback from getPrimaryTabIds is an array of IDs. So your call to openSubtab fails ...
1
vote
How to add new Action buttons to related list?
Sadly, at this time the native Related List components do not support custom buttons. In fact, they do not support certain standard buttons either:
Add to Campaign
Send an Email
One alternative for ...
1
vote
Accepted
Service cloud console auto close Primary Tab after 5 sec
Posting comment as answer
Provide a callback function and use setTimeout(function(){ alert("Hello"); }, 5000); Obviously replacing the alert with the code you need?
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
custom-console-components × 57visualforce × 23
console × 20
service-cloud-console × 18
javascript × 9
consoleintegrationtoolkit × 8
apex × 6
lightning-aura-components × 4
page-layout × 3
tasks × 2
related-list × 2
custom-service-console × 2
lightning × 1
lightning-web-components × 1
lightning-experience × 1
visual-workflow × 1
deployment × 1
visualforce-component × 1
metadata-api × 1
case × 1
aura × 1
lightning-apps × 1
permissions × 1
security × 1
controller-extension × 1