If we want get result from dynamic soql query as per sample here
sObject queryResult = Database.query('Select \''+field +'\' from sObject where id = \''+ recordid +'\'');
String Text = (String)queryResult.get(field_Name));
Using this we can get dynamic query result.
sObject queryResult = Database.query('Select \''+field +'\' from sObject where id = \''+ recordid +'\'');
String Text = (String)queryResult.get(field_Name));
Using this we can get dynamic query result.
No comments:
Post a Comment