I have a
String that contains some custom fields of
I want to pass a
String in a
Select query like this :
String myString = 'myCustomField1__c, myCustomField2__c'; List<Account> accounts = [SELECT Id, Name, myString FROM Account];
How can I do this ?
I'm able to do it with
Database.query(...) but I'd prefer the method above if possible.