Created
October 3, 2016 00:23
-
-
Save suddeb/7bf214234e7f2bf467cfb9f83b039845 to your computer and use it in GitHub Desktop.
CorrectDynamicSOQL
This file contains 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
MyCustomObject__c newCustomObject = new MyCustomObject__c(myCustomField__c ='My Custome Field'); | |
String fieldValue = newCustomObject.myCustomField__c; | |
List<sObject> sObjList = Database.query('SELECT Id FROM MyCustomObject__c WHERE myCustomField__c = :fieldValue'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment