You need to sign in to do that
Don't have an account?
RockyDrakeM
Sustituting a custom field dynamically in Apex result of a query
Hello,
I want to query get the values from the already queried result dynamically
I have below snippet
thanks for advise
I want to query get the values from the already queried result dynamically
I have below snippet
for (QuoteLineItem q : qli){ String a = 'Designation__c'; if(String.isNotBlank(q.Designation__c)){ //Work } if(String.isNotBlank(q.a)){ //Doest not Work } }Can anyone tell me, how could i resolve this issue
thanks for advise
Refer to https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_sobject.htm
for more information.
if(string.isNotBlank(sObj.get(a)))