Most Popular
1500 questions
13
votes
1 answer
Problems with deprecation in patch to minor release of managed package
I @deprecated some interfaces and methods in a minor release (v1.1) of my managed package. Now I'm working on a patch to that minor release (v1.1.1), using a freshly created patch org, and am getting some peculiar behavior:
I edit and save a class…
Jelle van Geuns
- 1,306
- 1
- 11
- 28
13
votes
2 answers
Internal Server Error Accessing Org-Default Custom Setting In Test Method - Problem With Currency Values
This is driving me slightly crazy. I have a hierarchy type custom setting which has a currency field.
Inside a trigger I do the following:
Global_Settings__c gs = Global_Settings__c.getOrgDefaults();
if(gs.Id == null)
{
gs.Minimum_Amount__c =…
Matt Lacey
- 25,618
- 7
- 66
- 149
13
votes
6 answers
Reverse list in Apex
Can you reverse a list of objects in Apex?
In Java and C#, there is a method you can call to reverse a list but I don't see one for Apex...
akcorp2003
- 697
- 3
- 10
- 26
13
votes
3 answers
Difficulties with Appleman's Trigger Classes
I'm working on a major project that has numerous triggers creating new records on 4 objects while also syncing updates back and forth between 3 of the 4 objects. The new records are primarily created when a trigger fires on only 1 object, but…
crmprogdev
- 40,955
- 9
- 58
- 115
13
votes
4 answers
Deploy incremental changes using Github and Jenkins
We are using Jenkins and Github to automate deployments from dev to test to production and currently do a full deploy (the whole package) based on what is stored in GitHub.
We would like to improve this by doing incremental builds => deploying only…
Nielsm
- 2,084
- 1
- 20
- 38
13
votes
3 answers
When is it appropriate to use the @TestVisible Annotation
So from the docs I understand that @TestVisible is used to allow Unit Tests access to private and protected methods.
What I was wondering is, when is it appropriate to use this annotation?
For example, I have a list generated in a wrapper class that…
Dan Jones
- 7,177
- 4
- 38
- 63
13
votes
1 answer
Developer Edition with Namespace: duplicate triggers?
In my namespaced Developer Edition org, I started using Cloud 9 IDE, which, despite being a beta, is pretty amazing. However, in one of my orgs, Cloud 9 refused to work without any explanation. I plan on filing a bug with them, but I traced the…
sfdcfox
- 489,769
- 21
- 458
- 806
13
votes
1 answer
SHA1 Hash Results
I am trying to encryption a string using SHA1 encryption.
Test string
The quick brown fox jumps over the lazy dog
2fd4e1c67a2d28fced849ee1bb76e7391b93eb12 (encryption token)
You can validate this here
http://www.sha1-online.com/
But if I use same…
Peeyush
- 901
- 7
- 20
13
votes
5 answers
How to call Apex REST API from Javascript?
I have two different developer orgs. One contains apex REST web service, and I want to call that REST service from my second org. I have tried to call that REST service using normal ajax post request and forcetk.js, But I got following…
Tushar Kumawat
- 518
- 1
- 5
- 15
13
votes
1 answer
How do I query custom object history in SOQL with an inner query?
I'm trying to pull the history records of a custom object with an inner query.
Here is the sample:
Select Id, Name, (Select NewValue From Custom_Object__History) From Custom_Object__c
Based on the documentation here
This should work.
example in…
Jonathan Jenkins
- 667
- 2
- 6
- 15
13
votes
1 answer
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:
Jake Richter
- 1,361
- 1
- 11
- 24
13
votes
2 answers
Updating multi currency rates from Apex
I just looked in the Salesforce.com documentation for a way to update currency rates using Apex, but I have a vague feeling that this is not possible using standard features. I noticed that a couple of packages on AppExchange are doing this for…
jpmonette
- 4,440
- 8
- 38
- 69
13
votes
3 answers
End user cannot open a .xls report exported from Salesforce
Whenever one of my end users clicks "Export Details" or "Printable View" on a report and chooses .xls (default), the report will download. When she clicks on it to open, Excel opens but the area where the report should be is blank and gray. This…
Piya Fiedler
- 211
- 1
- 2
- 8
13
votes
1 answer
Are queueable jobs actually queueable?
Do jobs placed in apex queue are actually executed the order they've been put in?
Or is this expected by developer to be implemented manually by using chaining?
dzh
- 4,106
- 7
- 50
- 99
13
votes
3 answers
Retrieving Values from Custom Settings
I have created a Custom Settings 'Tal_Source_Map__c' which has 4 fields.
SF_Source_Type__c
SF_Source_Sub_Type__c
Tal_Source_Type__c
Tal_Source_Type__c
Combination of SF_Source_Type__c and SF_Source_Sub_Type__c will have a unique set of…
Yash Mehta
- 1,515
- 4
- 24
- 42