Created
April 24, 2016 15:14
-
-
Save lfreeland/9e1cdd40ab1ad1e97f5acf3e88027d75 to your computer and use it in GitHub Desktop.
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
| String format = 'Select Id from Account where Id = \'\'{0}\'\''; | |
| String Id = '<some_id>'; | |
| String query = String.format(format, new List<String>{ Id }); | |
| system.debug(' query is ' + query); | |
| // Output: query is Select Id from Account where Id = '<some_id>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment