Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
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 ...
Jayant Das's user avatar
  • 30.6k
11 votes
Accepted

Id attribute of an element gets changed in LWC

Update From Spring 2023 release you can use the lwc:ref directives to easily reference DOM elements in LWC. HTML <div lwc:ref="myDiv"></div> JS console.log(this.refs.myDiv); ...
Rahul Gawale's user avatar
  • 12.2k
7 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.
Abhinav Paul's user avatar
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. ...
Adrian Larson's user avatar
  • 150k
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 ...
Adam Spriggs's user avatar
  • 30.7k
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, ...
Brand0R's user avatar
  • 1,054
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....
PartOfTheOhana's user avatar
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 ...
Derek F's user avatar
  • 62k
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.
sfdcfox's user avatar
  • 493k
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, (...
Santanu Boral's user avatar
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 ...
Matt Lacey's user avatar
  • 25.6k
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 ...
Ashwani's user avatar
  • 22.6k
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, ...
Ben's user avatar
  • 81
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 ...
Paul H.'s user avatar
  • 1,338
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 ...
Mohith Shrivastava's user avatar
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 ...
Paul H.'s user avatar
  • 1,338
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 ...
Ratan Paul's user avatar
  • 22.7k
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, ...
Santanu Boral's user avatar
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....
Daniel Hoechst's user avatar
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 ...
iDog's user avatar
  • 484
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 ...
Adrian Larson's user avatar
  • 150k
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 ...
Nithesh N's user avatar
  • 475
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 ...
David Reed's user avatar
  • 93.1k
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="...
Pranay Jaiswal's user avatar
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 ...
crmprogdev's user avatar
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 ...
Jwok's user avatar
  • 769
3 votes

Error While adding code comments

This is a limitation of the developer console, similar to what I described in What is the longest URI that Salesforce will accept through the REST API? In short, the developer console is sending the ...
Derek F's user avatar
  • 62k
3 votes
Accepted

Visualforce Remoting: Parameter length does not match remote action parameters: expected 1 parameters, got

The total number of parameters you need to use in JavaScript will be the number of Apex parameters plus one for the callback. You neglected to include the required parameter, hence the error. The ...
sfdcfox's user avatar
  • 493k
3 votes

Removing "/aura" Logs from Dev Console

Not sure if there is way to completely stop loading the /aura logs, but you can use the filter box at the bottom of the logs tab. See screenshots below. you can get rid of the other logs just by ...
arut's user avatar
  • 5,281
2 votes
Accepted

Old Console and VisualForce Pages

Jenny B, I have a workaround that works for me. You can below code inserting into your visualforce page that overrides your standard page. apex:includeScript value="/support/console/37.0/integration....
Magnetism's user avatar

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