You need to sign in to do that
Don't have an account?

How to pass an object field into a method for execution in a query
I am currently running this query which runs fine:
List<AggregateResult> lst =[select Max(DistrictOneRecordCnt__c)maxvalue from Utility_Permit__c];
However, I want to refactor the code so that I can pass the "DistrictOneRecordCnt__c" field into the method that has this query and thereby make the method more generic. Any and all help in this matter is appreciated.
Thanks,
Vibrate
Hi
I think you are aksing for below.