Created
April 22, 2016 02:46
-
-
Save lfreeland/73dfb7c3a148b9d76d7b4096664b6f0d 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