I need to an object and modify it's parent if condition are fullfiled but i'm encoutering an wierd behavior: in my SOQL the __r.field doesn't retrieve the fields values:
Below my anonymous code:
list<FLU_PaymentDeadline__c> pdl = [Select FLU_Contract__r.Name, FLU_Contract__r.FLU_ReviewAutoPay__c, SystemModstamp, FLU_PaymentMeans__c FROM FLU_PaymentDeadline__c where FLU_PaymentMeans__c = 'CB']; system.debug(pdl);
I can see the contract even if I did not query it and cannot see any field on the contract.
I tried with the query editor the same query:
Here i got what i want.
Can anybody else encoutered this kind of behavior already? I did check my profiles right in case it had something to do with it but I got access on all fields required.