Created
March 28, 2016 00:57
-
-
Save lfreeland/1e38e8af6a1845e1e7b0 to your computer and use it in GitHub Desktop.
Variable Binding Dynamic SOQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Set<Id> accountIds = … | |
| /* The accountIds variable is directly embedded in the accountQuery string and binded | |
| against in Database.query | |
| */ | |
| String accountQuery = ‘select id, name from Account where Id in :accountIds’; | |
| List<Account> accts = Database.query(accountQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment