3

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 since that prefix isn't in Daniel's comprehensive list. Check the code for where you're including this component and double check what record ID you're passing to ...


3

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 proceed to layout. Also, is there a way to get the visualforce source for the custom tasks what I have created with declarative configuration, so that I ...


3

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 this to be the source of the errors you are seeing. From the Docs: Lightning Web Components doesn’t currently support these Salesforce experiences and ...


3

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 name="myevent" type="c:myEvent" /> <ui:button label="fireEvent" press="{!c.fireevent}" /> </aura:component> The JS controller file ({ ...


2

Well you can't technically override the standard list view, but you can still accomplish what you are asking: Create your Visualforce page you'd like to override the list view with. Create a Visualforce Tab and name it the same thing as the object. Add the newly created Visualforce Tab to your console app. Voila! You will need to ensure links are opened ...


2

Got an answer from Mike Hineline, a Sales Engineer at Salesforce (via tweets, hence the short sentences!): There are no governor limits with JavaScript functions in the Salesforce Console Integration Toolkit. Similar to how JavaScript remoting doesn't count against your API limits. Note that if you're invoking things like push notifications, you may ...


2

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.getFocusedPrimaryTabId. Note that you'll probably want to also setup a listener on one or both of sforce.console.onFocusedPrimaryTab and sforce.console....


2

You are likely to still have the same Cross Domain scripting issue as custom console components (Visualforce) are served from a different domain. The Salesforce Best Practice would be to override the page with a complete Visualforce Page, depending on what type of "alteration" you are trying to accomplish.


2

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 example, and don't just delete tabs based on a hardcoded tab title var workspaceAPI = component.find("workspace"); workspaceAPI.getAllTabInfo().then(function(...


2

The service cloud App set up,now has a whitelist domains as shown above and we can add domain URL there I believe to whitelist .Navigate to Setup>Apps>Service cloud app Check this article on this https://help.salesforce.com/HTViewHelpDoc?id=console2_whitelist_domains.htm&language=en_US na12.visual.force.com is what you will need to enter I believe .


1

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 iterator ass is not best practice for US/UK audiences - try assoc


1

You are using Bottom Sidebar(Interaction Log), that may be the issue. There is another Bottom Sidebar exists. Use that.


1

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 doesn't work, you can try getting a reference to the console component's button via document.getElementById and calling click() on it.


1

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 Mini Page Layout to add or remove fields from the sidebar. https://releasenotes.docs.salesforce.com/en-us/summer14/release-notes/...


1

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) { // select all anchor tags // cache array size for performance if there are many links // define a click listener function once for reuse var anchors =...


1

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 the relevent tabs, subtabs and objects and records that are open and open the record in a new Tab. You'll need follow the documentation on using the Console API ...


1

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" onstatuschange="{!c.handleStatusChange}" /> You could have it load the next flow, or an "all done" screen, or...endless possibilities ;) The other option is to ...


1

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 in order to communicate with your already build custom component. Usually, When a user clicks on a record from the related list, the interface redirects to ...


1

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.objectId, subtabId: result.id }) ); Where doSomething is the method that you want to call when a new subtab is selected. If you just want to reload your own component,...


1

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 tab id as a parameter. <apex:page standardController="Case"> <apex:includeScript value="/support/console/40.0/integration.js"/> <A ...


1

You have to call sforce.console.getFocusedPrimaryTabId() again in OpenSolution() method before if conditions, then it will take correct primaryTabIdxRt function openSolution(recURL) { sforce.console.getFocusedPrimaryTabId(processTab, true); if (primaryTabIdxR.......){ } } Please refer my answer in your last question Console component tries to ...


1

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 am clicking on 'Refresh Primary Tab Id` button so that it can recognize the tab id. I think, every time your Solution record is opening on Subtab, may be in ...


1

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 from your controller. public with sharing class MyExtension { public Id caseId { get; private set; } public MyExtension(ApexPages.StandardController ...


1

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 because it's getting invalid input. If you want a single ID of the primary tab your component is loaded in, you can use the method getEnclosingPrimaryTabId. ...


1

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 you might be to tweak your process: User opens account User opens contact from your sidebar You add a New Case quick-action to your contacts page layout User ...


1

Posting comment as answer Provide a callback function and use setTimeout(function(){ alert("Hello"); }, 5000); Obviously replacing the alert with the code you need?


1

Your page uses the user standard controller but since you're placing it in the accounts tab, effectively you're passing in an Account ID (which would only work for an Account standard controller). One solution you can do is query the userID from your accounts table and apply that to your code logic (after creating another page that's similar to your page ...


1

After struggling with a combination of a JavaScript button launching a VF page using more JavaScript to open a subtab, it's now been boiled down to the single JavaScript button, which looks like this: // Require the Salesforce Console Integration Toolkit {!REQUIRESCRIPT("/support/console/33.0/integration.js")} // Require the AJAX Toolkit {!...


1

Looks like this was fixed at some point. When pulling the metadata, I now retrieve a value of 'self_lookup_component'. <containers> <isContainerAutoSizeEnabled>true</isContainerAutoSizeEnabled> <region>Left</region> <sidebarComponents> <componentType>Lookup</componentType> <...


Only top voted, non community-wiki answers of a minimum length are eligible