Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 66

Questions relating to Apex, the native programming language for the Force.com platform. Use it for general questions on syntax, errors, constructs, and rules of use. Most questions should include a code *excerpt* to help answerers understand specifically what has gone wrong or why you need help.

1 vote

Code for unchecking checkbox

As I see your problem there are three parts to the solution. See if the Active flag is set at all - Assumption: if many records have the flag set we only leave the first record set Update all the re …
Simon Goodyear's user avatar
8 votes
Accepted

How to track history of a record of a custom object in apex class?

If you have field history tracking enabled for an object then the changes are stored in a special history table for that particular object. The naming of these tables follows a simple convention so s …
Simon Goodyear's user avatar
41 votes
Accepted

Handling a Query Zero Results

The exception is thrown because you are assigning the results of your query directly to an account, rather than a list of accounts. When you assign the results of a query directly to an instance of a …
Simon Goodyear's user avatar
15 votes
Accepted

List of sObjects returned from SOQL query

As can be seen in this snippet: So, even though a debug log will count both statements as one line of Apex in reality the second is executing much more code. …
Simon Goodyear's user avatar
3 votes

How to make the page's params redirect to another page still work

The key to this is to use the PageReference class and in particular the getParameters() method. I will make the presumption that the page you are trying to redirect to is a VF page called NextPage. …
Simon Goodyear's user avatar
5 votes
2 answers
3k views

Using the Crypto.verify() method to verify a JWT signature

I am trying to validate a JWT in apex by using the Crypto.verify() method, however, it always returns false despite the fact that I know it is valid. …
Simon Goodyear's user avatar
2 votes

Could Not install managed package with quickaction which implements force:lightningQuickActi...

So, this isn't a solution (yet) but clarification of the issue and steps to replicate it. I also have a case open with Salesforce support on this so will update if/when I get an answer. I have seen t …
Simon Goodyear's user avatar