You need to sign in to do that
Don't have an account?
Rajiii
Dynamic SOQL query result
Hi,
I would get the values from dynamic soql query. here in detail
XmlRD__c queryResult = Database.query('Select \''+field +'\' from XmlRD__c where id = \''+ recordid +'\'');
String Text = String.valueof(queryResult.field);
Here the red marking field values getting dynamically changing. i want to get the dynamic field value. but here throwing the issue. How can i get.
Try following :-
String Text = (String)queryResult.get(field));