You need to sign in to do that
Don't have an account?
Siddhant Shukla 16
parent relationship field returning null
I have a query as below:
WOD_2__Claim__c clm=[select id ,name,DTC_EngineSerialNo__c,DTC_Error__c, DTC_Engine_Mismatch__c, WOD_2__Inventory__r.Engine_Serial_Number__c from WOD_2__Claim__c where id=:claimid limit 1];
However when I debug clm.WOD_2__Inventory__r.Engine_Serial_Number__c is returning NULL.
The code runs in System mode. May I know why is this happeing
WOD_2__Claim__c clm=[select id ,name,DTC_EngineSerialNo__c,DTC_Error__c, DTC_Engine_Mismatch__c, WOD_2__Inventory__r.Engine_Serial_Number__c from WOD_2__Claim__c where id=:claimid limit 1];
However when I debug clm.WOD_2__Inventory__r.Engine_Serial_Number__c is returning NULL.
The code runs in System mode. May I know why is this happeing
Can you check the user has access to the WOD_2__Inventory__c records are sharing with the respective user or not.
Thanks!!