You need to sign in to do that
Don't have an account?
Kamatchi Devi Sargunanathan
Query result is not displaying all the fields in the query..any idea?
Hi All,
I am facing one issue as mentioned below,
Thanks,
Kamatchi Devi Sargunanathan
I am facing one issue as mentioned below,
- Custom Object is queried with fields in it along with some parent fields and also sub query. But when I am returning the result in the debug log I could see only fields related to the custom object only returned in the results.
- Due to this, if I add the same list in to any wrapper or passing it to a map it was showing only those values displayed when I try printing it in a VF page.
Thanks,
Kamatchi Devi Sargunanathan
Example - List<child__c> chidList = [SELECT id, name, parent__r.name FROM child__c];
system.debug('childList====='+chidList ); ==> this will print only id, name of child__c.
But, if we try to get this related object value like accList[0].parent__r.name this will return the value
All Answers
Example - List<child__c> chidList = [SELECT id, name, parent__r.name FROM child__c];
system.debug('childList====='+chidList ); ==> this will print only id, name of child__c.
But, if we try to get this related object value like accList[0].parent__r.name this will return the value