20
votes
Accepted
Log to console in a Lightning Web Component
You are most likely encountering ESLint errors in VS Code.
As an example below is how my code looks like with those warnings. However I am still able to save the component and utilize alert or ...
10
votes
Accepted
Id attribute of an element gets changed in LWC
You cannot stop that, also it's not recommended to manipulate DOM elements based on id, as the framework replaces custom id to globally unique id in the page.
So to get element you have two options.
...
7
votes
Accepted
Lightning App: how to fix [Exception, DomainNotPropagated] error
This is an error or misconfiguration on Salesforce's side - at least it was in my case. You should open a support-case and refer to this link and maybe my case number (12670479).
They have resolved ...
7
votes
Possible to hide or resize inline VF page based on criteria?
This feature is being delivered in Winter 18:
Make Your Lightning Pages Dynamic
Now you can control when a component appears on a record page by adding filter conditions and logic to its properties. ...
6
votes
Delete trace flags
From developer console, run this query-
"select id from TraceFlag"
Select the rows and your trace flags wil be deleted.
Make Sure you check "Use Tooling API" before executing the query.
6
votes
Accepted
Is there a way to test sql queries in exacttarget?
I'd recommend writing and testing your Query Activities outside of the platform using a local installation Microsoft SQL Server or SQLFiddle (using MS SQL Server 2008). It doesn't make sense for all ...
4
votes
Accepted
Is it "legal" to surface VF Pages in LEX using "#/alohaRedirect/apex/XXX" URL?
If it isn't anything that is explicitly documented by Salesforce then unfortunately it would be an unsupported hack or workaround for the time being. If it works, you can continue to use it. However, ...
4
votes
System.LimitException: Apex CPU time limit exceeded in Console
I think you have some large data sets in prod which are exposing some issues. In your case, I think you're querying for all accounts, and on 3 occasions querying for all your contacts and opps as well....
4
votes
Accepted
How to fix error 431 Request Header Fields Too Large . HTTP CODE[431] in Anonymous Window
The Problem
This error is due to the number of characters you've used. I go over it in more detail in What is the longest URI that Salesforce will accept through the REST API? , but the gist of it is ...
4
votes
LWC - map function is working on console but not on the page
You do not JSON.stringify an Array before attempting to use Array methods, such as Array.prototype.map.
3
votes
How do I know/find the Id or name of an already open primary tab in the console?
You need the getFocusedPrimaryTabId, or possibly getPrimaryTabIds:
(function (c) {
"use strict";
var focusedPrimaryTabId, allPrimaryTabIds;
c.getFocusedPriaryTabId(function (result) {
...
3
votes
Accepted
Regex: I need to get numbers inside square brackets my regular exp is working in online tester but not in console
You have to use find method of the Matcher class.
In my observation, if you use m.find() function it search for the string based on your pattern then returns true and you will get the value in debug
...
3
votes
Accepted
Error Message- Standard tabsets are not permitted for this profile
My understanding is that a Salesforce Platform license does not allow access to tabsets aka standard apps. The service cloud console an example of an app, so by having that new profile enabled in a ...
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
Accepted
Display visualforce page in console
If you have 'Enable clickjack protection for customer Visualforce pages with headers disabled' it will block VF pages in the console. This is because each tab in the console is an iFrame, and VF pages ...
3
votes
Accepted
Javascript Button Error, Winter 16?
sforce.console is in the Console Integration Toolkit's script along with that method you're trying to call: getEnclosingPrimaryTabId.
It looks like you're only loading the Ajax Toolkit. (connection....
3
votes
Delete trace flags
Go To Setup -> Monitoring -> Debug Logs.
This will show you all the user trace flags.
You can also do this via the REST Explorer on workbench.
/services/data/v35.0/tooling/sobjects/TraceFlag
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
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
Getting an error as unable to get property "dolayout" in salesforce console
Resolution: This is now a Salesforce bug. See details Here and click on the button that says 'This Issue Affects Me' to be notified of a resolution. Looks like planned fix is Summer at the latest, ...
3
votes
Accepted
openPrimaryTab() not opening more than one tab with a tabLabel - Console
In this case, you need to specify undefined rather than defined as null in the first argument of
sforce.console.openPrimaryTab(***id:String***, url:URL, active:Boolean, (optional)tabLabel:String, (...
3
votes
How to add fields dynamically in mini console view visualforce
For dynamic manipulation of fields you could define a field set and add fields into the field set.
Setup--> Account --> Field Sets
In this example, field set name is judelaw. In the page layout, ...
3
votes
sforce.console.refreshPrimaryTabById not working in lightning?
sforce.console only works in the classic console. The Lightning Console API is not GA yet. You can see information about the pilot here: https://developer.salesforce.com/docs/atlas.en-us.api_console....
3
votes
Accepted
QuickActionDefaultsHandler not working in Lightning?
Indeed, this is not supported in Lightning.
In my organization, I mainly overcame this by including the desired logic in a unified Custom HTML email template, and set it as a default for the Email ...
3
votes
Understanding opensubtab functionality along with javascript
The sforce.console.getEnclosingTabId method is asynchronous and the method you pass in as a parameter is termed a callback function. This behavior is clearly indicated in the documentation:
This ...
3
votes
How to open a custom Lightning component/tab/app in Lightning Service Console?
With Summer 18 Release, you can open custom lightning components in a new tab.
If You are trying to open MyComponent.cmp in a new tab/subtab, implement this interface lightning:isUrlAddressable in ...
3
votes
Accepted
Execute Javascript on VFP from Controller Query Results
You can't directly call JavaScript from Apex. JavaScript executes on the client side, in the browser; Apex is executed on the Salesforce server as part of the page render process or in response to a ...
3
votes
Accepted
Lightning Console
You can try isConsoleNavigation() for Lightning Experience.
isConsoleNavigation() Determines whether the app it’s used within
uses console navigation.
Markup:
<aura:component implements="...
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 ...
3
votes
Accepted
Set Console App' Tab Icon size
tl;dr - use "standard" icons
In case it is helpful for future readers, I was able to find a solution to this.
I was just building out an aura tab and encountered this same issue. While most ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
console × 222visualforce × 63
javascript × 44
service-cloud-console × 33
lightning × 31
apex × 28
custom-console-components × 21
lightning-aura-components × 18
lightning-web-components × 15
tab × 14
developer-console × 13
consoleintegrationtoolkit × 13
service × 9
case × 7
aura × 6
workspaceapi × 5
trigger × 4
api × 4
visualforce-component × 4
lightning-apps × 4
page-layout × 4
liveagent × 4
cti × 4
lightning-experience × 3
query × 3