Search Results
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 |
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.
5
votes
1
answer
450
views
Docs about comparison operators saying case-sensitive
Above all sorry about the title, couldn't find a good one. Please edit if you think of any
I stumbled upon this description about equals operator in Salesforce docs.
OPERATOR NAME DESCRIPTIO …
4
votes
Accepted
Assignment Operation in Apex
==
This is called Equality operator. Returns True or False depending on the equality of its operands. It has precedence over assignment operator which means it is executed first.
serialNumberObj.Pre …
0
votes
1
answer
62
views
Break single responsibility to save a soql call [closed]
We are making a rest API call to the external DB. In simplified terms, it looks like below (the payload might not be in the correct json format here but normally it is).
public class UpdateExternalDBQ …
0
votes
0
answers
128
views
Method was removed after version 45.0: isCurrentUserLicensed [duplicate]
When I try to use UserInfo.isCurrentUserLicensed method, it shows an error Method was removed after version 45.0: isCurrentUserLicensed.
If I change the API version of the class to v45 it works fine.
…
1
vote
1
answer
63
views
What to check in a test method that doesn't modify or return a value?
I have a queueable class that gets a token then enqueues another queueable with the retrieved token. The second queueable do the DML and everything.
This TokenQueueable class doesn't modify or return …