Skip to content

Instantly share code, notes, and snippets.

@lfreeland
Created March 28, 2016 12:31
Show Gist options
  • Save lfreeland/3a0be19e72167c395983 to your computer and use it in GitHub Desktop.
Save lfreeland/3a0be19e72167c395983 to your computer and use it in GitHub Desktop.
Invalid Dynamic SOQL from SObject Reference
Account acct = new Account(Id = ‘Some_Acct_Id_Here’);
String accountQuery = ‘Select id, name from Account where Id = :acct.Id’;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment