All Questions

24,228 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
90
votes
0answers
2k views

When are the Queueable/Batchable penalties going to be enforced?

According to The New Apex Queueable Interface, from October 2014, we were told that chained Queueable calls would be exponentially delayed up to 64 seconds, chaining Batches would be exponentially ...
52
votes
1answer
748 views

How does Salesforce determine where to apply the “*** Skipped X bytes of detailed log” section in a log

Firstly, this question isn't about how to access missing log content when a *** Skipped 53353122 bytes of detailed log style message is encountered. That is covered in another question and resolves ...
31
votes
0answers
690 views

Best practices for designing and maintaining Global classes?

We've always been conservative when it comes to exposing Globals for use by extension packages or subscriber extensions, and perhaps too conservative. We're considering being more proactive wth our ...
29
votes
0answers
363 views

Mini Page Layout Hovers in Managed Package

Has anyone using the mini page layout popup technique listed here in a managed package had the package rejected in security review because of it? This is obviously an unsupported technique, but given ...
26
votes
0answers
388 views

Why new Developer Orgs spun with Environment Hub now have Status=Trial and do expire? I while ago it was Status=Free without expiration

Today I had to spin some new DE orgs via the Environment Hub. I've done this often before and I thought to know the process. But I was shocked after taken a closer look on the orgs, which have been ...
24
votes
0answers
529 views

Managed Package Providers No longer able to access Debug Logs

I just wanted to double check because we are having trouble seeing debug logs for our extension packages in subscriber orgs. The main package which started it all works fine. I am being told by SF ...
22
votes
3answers
1k views

force:navigateToComponent not loading component in Summer '17 | DOM repetition issue in Summer '17

I'm using force:navigateToComponent to navigate to a different component on click. On the first click, it navigates to the component and everything is successfully loaded. When pressing back button ...
20
votes
1answer
350 views

Email value is saved without parentheses (label) when using DML

When an email contains a label enclosed in parentheses, the value can be saved as typed in via SF UI. (Note: the email value "as is" is only seen when in Edit mode.) However, when the record is saved ...
19
votes
1answer
414 views

Are Apex interfaces and abstract classes case-sensitive?

My understanding from the docs is that apex class and method names are case-insensitive. I've run across an edge-case with interfaces and abstract classes which appears to be undocumented behavior ...
19
votes
1answer
1k views

deserializing JSON to object: different behavior in unit test vs API?

So let's say I've got a class that looks like this: public class APIParams { public String name; public String category; public Boolean taxable = false; } Then I have a ...
16
votes
0answers
288 views

Custom Labels in Packages - Potential BUG in Winter 19 (Confirmed as Know Issue by Salesforce)

We have an unmanaged package using 167 custom labels to use the Translation Workbench in Salesforce and to be able to translate texts into different languages. Until now, all our custom labels have ...
16
votes
0answers
985 views

Highcharts tooltip getting overlapped by graph when locker service is activated

I'm facing an issue where Highcharts tooltip is being overlapped by the graph itself. Please find the following image which depicts the same: When LS is active: When LS is deactivated (The scale of ...
16
votes
2answers
776 views

Is forcetk accessible in Communities

I am using forcetk to upload files (as Attachment records) in a VisualForce Page and it works fine. But when I access same page in a Community, I am not able to upload the file as I am getting the "...
15
votes
0answers
1k views

Using apex class as attribute type for component - Summer '14 IDE issue

I have a component that gets an instance custom Apex Class as an attribute, ie: <apex:component controller="ComponentController"> <apex:attribute name="myAttr" assignTo="{!attr}" type="...
15
votes
2answers
286 views

How does Salesforce handle Managed Package Licences between Packages?

So I have a managed package we'll call Package Core. It has various components, incl custom fields on Account and Contact. It is licensed by user, and works as expected - no license, no access to the ...
15
votes
2answers
1k views

Find Parent Event of Child Event

Problem Statement Show a list of events on visualforce page, and give ability to respond as accept/reject/maybe. Scenario: 3 users are participating in an event. Event is created by a user named "...
14
votes
1answer
344 views

Cannot read property '$$OwnerKey$$' of null

I have a Visualforce Lightning Out page that's rendering some <lightning:input type="date"> elements. Since the Winter '19 release in the dev sandbox I'm working in, whenever I select a date ...
14
votes
1answer
586 views

Lightning Components: Why is the rendering of 3-level nested <aura:iteration>'s so slow?

I have been working with a nested iteration and it is causing a delay of >3 seconds AFTER loading things from the APEX controller. The APEX response itself is fast, so I'm not looking for any APEX ...
14
votes
1answer
2k views

Lightning picklist for an SObject-Field - which one to choose ui:inputSelect or lightning:select or force:inputField or lightning:input?

I need to decide which path to proceed: <ui:inputSelect /> <lightning:select /> <force:inputField /> <lightning:input /> (Beta) write my own component... Use case: ...
14
votes
0answers
306 views

How would I set up Doxygen to document Apex Code?

Currently I'm in a situation where I'd like to add documentation support for my code using Doxygen. I've downloaded and installed the program, and I have all of my .cls files in a single folder, and ...
14
votes
0answers
292 views

Using the Tooling API to create trigger, getting Error No such column 'Email' on entity 'User'

I'm using the Tooling API to dynamically create an Apex Trigger. The trigger itself consists of one line, calling a method in a Util class. Creating this trigger by hand works fine. When I try to ...
13
votes
0answers
254 views

Continuation Apex Unit Testing - Lightning

With Summer'19 release continuation is available in Lightning. To make long running callouts. Continuation - Aura Dev Guide: https://developer.salesforce.com/docs/atlas.en-us.220.0.lightning.meta/...
13
votes
0answers
632 views

Salesforce DX: How to track custom objects' changes in custom profiles?

Salesforce DX does not track some of the changes I make on my scratch org. How to reproduce a problem: Create a custom profile -> sfdx force:source:pull Create a custom object -> sfdx force:source:...
13
votes
0answers
1k views

Managed Package error “Dependent class is invalid and needs recompilation”

I'm getting an exception email from a client who has installed my Managed Package in his org. The error message I receive is: Apex script unhandled trigger exception by user/organization: ...
13
votes
1answer
502 views

ui:inputDateTime date and time pickers not displaying properly

We are working on some Lightning Components for a Salesforce Community. We are using our own template which is bare bones. Here's the code: <aura:component access="global" implements="...
13
votes
1answer
1k views

How to handle errors when using dynamic Custom Labels referencing?

Any ideas how to prevent error when trying dynamically access label which doesn't exist? Check somehow whether it exists before referencing or maybe catch this error. Here is my page: <apex:page ...
12
votes
0answers
446 views

why is the value in [] for insufficient access rights on cross-reference id: [] always/usually empty?

OK, I know how to debug this error and there are plenty of web resources to assist so please don't answer with those techniques. What I'm more after is why the ID value in [] is typically null for ...
12
votes
1answer
423 views

Testing Salesforce CPQ

I'm trying to create some meaningful tests for Salesforce CPQ. I'm trying to create Apex test classes and also UI tests with Selenium. The problem with the apex tests is that a lot of the important ...
12
votes
0answers
286 views

Possible values returned from the _messagecontext personalisation string

I'm following the personalization string documentation and need clarification on the _messagecontext string. Specifically, I want to understand under what context the following values would be ...
12
votes
1answer
528 views

Highcharts not being rendered in Microsoft Edge browser | Lightning component

I'm facing an issue where Highcharts report is not being loaded when opened using Microsoft edge browser. It's loading fine when opened using Google Chrome. Here's the code:- Component:- <aura:...
12
votes
2answers
2k views

Any equivalent of apex:variable in Lightning Components?

In Visualforce apex:variable can be used to avoid the repetition of a Visualforce expression. I have a collection returned from an @AuraEnabled method for which I want to do the same sort of thing ...
12
votes
1answer
645 views

mCustomScrollbar not working when Locker Service is enabled in Salesforce-1

I am having problem when using mCustomScrollbar (GIT Hub) when locker service is activated. During initialization of mCustomScrollbar in the helper, it throws the following error [TypeError: ...
12
votes
0answers
118 views

Fluctuations in obfuscation of managed package details

I've seen Salesforce obscure certain details about a managed package when it was deployed in a subscriber org. For instance, the debug logging generated from the managed package namespace isn't ...
12
votes
3answers
1k views

Create a currency formula field with no decimal places for Standard Page Layout

We have the following challenge with currency fields: Scenario: On child record(s) (in a multi-currency org) we have pricing information which is stored as a currency value with 5 decimal numbers in ...
12
votes
2answers
1k views

Rollup Summary Fields with multi currency are not working on Salesforce1

I have a Master-Detail relationship between two custom objects. A rollup summary field sums up a currency field on all detail objects with an specific record type. The Rollup summary field is ...
12
votes
1answer
533 views

Filter empty date field in SF analytics api

Using the analytics rest api we need to add a filter to a date field to get only the records where this field is empty. In json: { "column": "Account.Date_Field__c", "operator": "equals", ...
12
votes
1answer
1k views

Bad rightOperand type: got SObjectScriptRow

I just want to know what is SObjectScriptRow! All I can find about it is this question. I'm building an invocable method to be used from a process, where I have one input parameter: a list of an ...
11
votes
0answers
320 views

How to convert Standard Volume Event into High Volume Platform Events?

With Spring 19, High Volume platform events are generally available. Now I want to convert my existing standard volume event into a high volume event. I tried editing the event object in Setup, it ...
11
votes
0answers
130 views

How do we manage our roles in Salesforce DX?

We currently have about 700 roles in production, which is more than the default 500 roles allowed for an org. When trying to create a scratch org, this means that we can't push all of our roles. ...
11
votes
1answer
230 views

Why is my Lightning App inside a Managed Package extremly slow during its bootstrap phase (but not in the DEV org)?

I do have a managed package that contains a Lightning app (myApp.app) which contains various custom Lightning components. When I install the package in any org and open the app, it takes a very long ...
11
votes
2answers
353 views

Security Review Preparation: Checking isAccessible on each object and field in complex SOQL queries for whole codebase

We are preparing our managed package for security review. And as a part of this we need to enforce not just create/update/delete but also read (i.e. select) permissions. That means basically checking ...
11
votes
1answer
1k views

Lightning modals don't support scrolling reliably (overflow)

I' not talking about homegrown modals (Strike, plain SLDS CSS) but about native modals that Salesforce is displaying e.g. on custom NEW actions or via e.force.createRecord. If you have too many ...
11
votes
2answers
371 views

referencing static resources in lightning components with dynamic namespaces

We have a lightning component thats part of our appexchange package. We have development environments with no namespace, a beta/staging package namespace, and our production package namespace. Is it ...
11
votes
3answers
1k views

How to send an email in response to a triggered event?

We need to send emails in response to a triggered event. We have created two data extension, one for client data and another to event data. These data extensions are filled with API procedures. We ...
11
votes
1answer
615 views

JS Synchronous Calls - Email with Attachment

I'm trying to set up a JS button on a SFDC object record that sends an email to a recipient with a specific attachment from the Notes and Attachment related object. Would I theoretically be able to ...
11
votes
1answer
1k views

Flex security cross-domain issue in salesforce

I have developed a flex component which I am using on salesforce visualforce page. When I run that flex component on local machine it works fine. But when I run i through salesforce page it says *** ...
11
votes
1answer
188 views

CPU timeout - Does the DevConsole output tell me anything?

In a complex trigger situation: Triggers in base and extension package Complex (many lines of code) trigger logic Many records Extra customer logic (validation rules,...) in target org our packaged ...
11
votes
3answers
2k views

Lightning: dynamic index in aura attribute with type List

related post I am having the same issue. Trying to access array with dynamic index arrayList[index] (index from aura:iteration), but Salesforce doesn't support that. Does anyone know how to do this?...
11
votes
1answer
91 views

CORS issues with Chatter API Photo Posting

I have a Chatter Communities API request that creates a new user profile picture. This API callout works when I use an app like Ruby or even a cURL command. However, using an AJAX callout, I get a ...
11
votes
1answer
537 views

Creating Idea Votes from portal user in Test code. DML Exception

I Wrote a very simple VF Page and Controller to show the Accounts that voted on certain Ideas. Here is the controller. Just aggregates the Up and Down votes on the Idea excluding internal votes. ...

15 30 50 per page