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 39399

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.

2 votes
1 answer
963 views

Page.existingPageName page instantiation says Variable doesn't exist

It does work this way: public PageReference redirectToSetup() { return Page.SetupPage; } and this way: public PageReference redirectToSetup() { PageReference page = new PageReference('/apex/SetupPage …
user39399's user avatar
  • 1,054
30 votes
Accepted

Disable duplicate check for apex class?

I think you can bypass duplicate check with DMLOptions.DuplicateRuleHeader Class: documentation Sample: Database.DMLOptions dml = new Database.DMLOptions(); dml.DuplicateRuleHeader.AllowSave = true; …
user39399's user avatar
  • 1,054
11 votes
2 answers
12k views

String.format escape curly braces

Is there a way to escape curly braces within String.format? E.g. if I want to get the following output: {777} I'd expected {{ would do the job but this code throws an exception: String.form …
user39399's user avatar
  • 1,054
2 votes

Custom settings field error

if(LoginUserFranchiseName!=null) FieldInsightsTrackerSettings_ABV__c userSet = FieldInsightsTrackerSettings_ABV__c.getInstance(LoginUserFranchiseName); What if LoginUserFranchiseName is not null? Th …
user39399's user avatar
  • 1,054