Hot answers tagged

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.2k
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. ...
Rahul Gawale's user avatar
  • 11.8k
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
  • 149k
6 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 ...
Uwe Heim's user avatar
  • 28.2k
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
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,044
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
  • 58.3k
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
  • 477k
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,328
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,328
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

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.5k
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) { ...
Adrian Larson's user avatar
  • 149k
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....
Mark Pond's user avatar
  • 22.8k
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
abhi's user avatar
  • 1,780
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.5k
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.2k
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

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

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
  • 149k
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
  • 91.7k
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
  • 40.8k
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
  • 757

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