All Questions

82
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 ...
26
votes
0answers
532 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 ...
26
votes
0answers
346 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 ...
23
votes
0answers
354 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 ...
22
votes
0answers
491 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 ...
15
votes
0answers
155 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 ...
15
votes
0answers
916 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 ...
14
votes
0answers
272 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
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="...
13
votes
0answers
318 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 ...
13
votes
0answers
261 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 ...
11
votes
0answers
261 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 ...
11
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: ...
11
votes
0answers
111 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 ...
10
votes
0answers
181 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 ...
10
votes
0answers
464 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:...
10
votes
0answers
195 views

toLabel in @AuraEnabled Apex Lightning controller

The SOQL toLabel function doesn't work in my @AuraEnabled method when called from a Lightning component. UserInfo.getLanguage returns "fi" (for Finnish) but the Record Type Name field that's supposed ...
10
votes
0answers
193 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 ...
9
votes
0answers
167 views

Scratch orgs and Critical Updates

I notice that all the scratch orgs I've been creating starting in Spring '18 open up with a reminder to Enable the New URL Format for Lightning Experience and the Salesforce Mobile App. Another update ...
9
votes
0answers
206 views

LTS: How to test behavior dependent on afterScriptsLoaded

I’m looking for help/examples for setting up tests of a component which calls a load() method via afterScriptsLoaded, then renders data based on the result of the load (which calls a server-side ...
9
votes
0answers
336 views

Points to be considered for Salesforce Instance movement from NA to EU

I am working for a project that requires salesforce data center to be migrated(moved) from NA to EU due to security reasons. This org migration from server is obsviously going to be done by Salesforce ...
9
votes
0answers
257 views

Trigger on UserPackageLicense object?

I have a requirement for a managed package that we are developing. I need to make an API callout to an external system when user is assigned to the package (hybrid package on user based pricing model)....
9
votes
0answers
700 views

Error parsing json response: 'expected expression, got '<''. Logged in?

I'm calling a remote action which returns a wrapper. It works without any issues on most of the time. But sometimes, it throwing an error: Error parsing json response: 'expected expression, got '&...
9
votes
0answers
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 ...
9
votes
0answers
700 views

Is it possible to use a custom object with collaborative forecasts?

My organization has a custom object that has a child relationship with the opportunity object. We use this object for monthly bookings. Our organization has consumption based pricing. We might have ...
8
votes
0answers
90 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 ...
8
votes
0answers
87 views

Cache.Session not honoring ttlSecs argument?

I'm using session cache and trying to set the TTL (lifetime) to 60 minutes. However it is expiring much more quickly (it appears to be using the default 5 minute expiry). The docs say TTLs is ...
8
votes
0answers
128 views

SFDX force:data:tree:export Beyond 1 Level Deep

How are people doing force:data:tree:export/import on data in their orgs when the object relationship runs more than 1 level deep? From the doc: In each specified relationship, only one level of ...
8
votes
0answers
513 views

Debugging Lightning Components worse in Communities in Winter 19? [NoErrorObjectAvailable] Script error

Debugging little javascript errors has become a nightmare (again.. feel like this is how it was a year ago and earlier). Simple errors it seems, like referencing a controller method that does not ...
8
votes
0answers
80 views

@deprecated annotation issue in Managed Apex

We have 2 managed packages. Let's name those MPMAIN and MPCHILD. MPCHILD package is dependent on MPMAIN. In MPCHILD we have a class: @deprecated global class ChildClass extends MPMAIN.MainClass { ...
8
votes
0answers
70 views

How can I create an example component for AuraDoc which does not appear in the component library?

As I was playing around with the Lightning Component's documentation I saw that in order to display an example, I need to provide a reference to an actual example, but I haven't figured any possible ...
8
votes
0answers
164 views

Status of renderAs advanced_pdf

I just wondering if this promising feature has been evolved or is evolving to GA https://releasenotes.docs.salesforce.com/en-us/summer17/release-notes/rn_vf_advanced_pdf.htm Any info about current ...
8
votes
0answers
87 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. ...
8
votes
0answers
439 views

How to set attribute in the designer to a string-value which contains expression-tokens like “{!…}”?

I have defined a string attribute like <aura:attribute name="pageParams" type="String" default="" access="global" /> and in the design <design:attribute name="pageParams" label="Custom ...
8
votes
0answers
221 views

Is is possible to spyOn a helper function in a Lightning Testing Service (LTS) test?

In How to mock or configure lightning:workspaceAPI in Lightning Testing Service (LTS) tests? the answer suggests using Jasmine's spyOn to call a fake function in a test and so work-around an API that ...
8
votes
0answers
242 views

Spring 18 breaks overridden apex methods in lightning components

We have an overridden @auraEnabled method that returns an array of custom apex class objects with @auraEnabled get methods. This has worked since it was built. However, one of our customers just ...
8
votes
0answers
131 views

REST API error middlename,suffix,informalname fields do not exist but they appear in describe results

We develop a AppExchange package and are having an issue with middlename,suffix,informalname fields on the Contact object. The issue is these fields are returned through a describe call also filtering ...
8
votes
0answers
681 views

Including access token in endpoint URL when using named credential in REST callout

I'm trying to retrieve a list of forms using the FormAssembly API via a HTTP Request to the endpoint: https://app.formassembly.com/api_v1/forms/index.json I was able to setup named credentials and ...
8
votes
0answers
171 views

What are the extra arguments in InvokePerform() AMPScript function?

There are no examples on the usage of the InvokePerform() AMPScript function in the official documentation -- at least that I can find. Doing some testing and comparing the usage to the SOAP API, I ...
8
votes
0answers
172 views

Salesforce doesn't merge fields on email sent in platform event context

I have a process that runs every day in the morning. It is a scheduled class that publishes a platform event. When this event is run by the system, it collects some records and sends emails to some ...
8
votes
0answers
237 views

Make custom, in-memory “Lightning Data Service” work

Lightning Data Service is great. Multiple components are magically linked to database records. When records change in the db component show that change. Imagine this to work without saving change to ...
8
votes
0answers
70 views

Is there a work around to allow binding of variables in the sfdx force:data:tree:export query file

When using sfdx force:data:tree export with an in-line query, you can bind variables by creating them in the cli before running the export command, like so: CURRENTYR=2017 sfdx force:data:tree:export ...
8
votes
0answers
246 views

How to express the last iteration of #each in Guide Template Language?

I am trying to use json arrays in my email using Guide template language and the issue is I need to stop showing the divider line on the last iteration of {{#each}} loop. I have tried {{@last}} or any ...
8
votes
0answers
127 views

Einstein Data Analysis Scope

I was wondering if Einstein will only analyse and provide predictive insights and recommendations based on the actual org I am using, or will it take it one step further and provide the same based on ...
8
votes
0answers
101 views

Securely logging out as any user

When using the functionality where the system admin can log in as any user, I noticed that during log-out, there are two different responses that I can get back from /secur/logout.jsp. The most common ...
8
votes
0answers
928 views

Lightning Components: How to fix New Button in Related Lists of Visualforce Pages rendered insinde a Visualforce Component on a Flexipage

For Visualforce pages the Standard New-Button created by <apex:detail> doesn't work correctly inside Visualforce containers on Flexipages. Scenario: I've put a Standard Visualforce Component ...
8
votes
0answers
477 views

Internet Explorer bug with lightning ui:inputNumber, ui:inputCurrency with change attribute

I've discovered a strange bug in Internet Explorer with ui:inputCurrency and ui:inputNumber lightning components (probably it also affects other "number" components -> ui:inputPercent). When your ...
8
votes
0answers
249 views

Recreating the Event Notification Email

Is there a way to determine what the aid parameter is for a given event relation record? We would like to add Invitee's to events and send a custom email notification to them allowing for the ...
7
votes
0answers
191 views

Lightning Datatable Action Violates Content Security Policy directive

I'm using Lightning Datatable with Static Actions and following the guide in Developer Salesforce.com Lightning Datatable component guide but getting the following error (seen in the Chrome developer ...
7
votes
0answers
250 views

Total Batches increase during the run of a batch (again)

I experienced a batch that changed (increased) the #TotalBatches during its execution. 104 total batches Reload. 106 total batches I experienced this year ago (see this question Total number of ...

15 30 50 per page