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 answers only not deleted user 2995
2 votes

Variable does not exist - global Boolean and webService Argument

Instead of: global boolean awsUpdate; Use: global static Boolean awsUpdate; Or consider public/private access modifiers if they are more appropriate. …
Adrian Larson's user avatar
  • 151k
2 votes
Accepted

Test Coverage Drops from 92% to 21% if @testSetup inserts more than 200 records through a Tr...

This behavior is very similar to what's going on with your Boolean flag. A trigger invocation will only enter the if block if it is the first invocation in the transaction. …
Adrian Larson's user avatar
  • 151k
6 votes
Accepted

Cannot convert Boolean to String

public static String wrapSingleQuotes(Boolean input) { return (input == null) ? … '' : '\'' + String.valueOf(input) + '\''; } Then you can do: system.debug('boolean to string: ' + wrapSingleQuotes(b)); Same strategy would apply for parens, double quotes, etc. …
Adrian Larson's user avatar
  • 151k
1 vote
Accepted

Attempt to reference null exception

You need to do a null check: if (String.isNotBlank(Restrict) && Restrict.contains(ProdRestrict))
Adrian Larson's user avatar
  • 151k