You need to sign in to do that
Don't have an account?
![Varun Annadata Varun Annadata](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
I am trying to use inline query to query a child fields
But the compiler is not recognizing the relationship name.Why is the inline query not able to recognize the relationship name.What may be possible problem?
List<Medical_History_MVN__c> Mh= new List<Medical_History_MVN__c>([select Id,Primary_ICD_10_CM_Code_C1__c,Primary_ICD_10_CM_Code_C1__r.Disease_State__c from Medical_History_MVN__c where Program_Member__c =: pmId and RecordTypeId =: RT1Id]);
Can you please Let me know if it works or not!!!
If it helps don't forget to mark this as a best answer!!!
Thanks,
Raj
All Answers
List<Medical_History_MVN__c> Mh= new List<Medical_History_MVN__c>([select Id,Primary_ICD_10_CM_Code_C1__c,Primary_ICD_10_CM_Code_C1__r.Disease_State__c from Medical_History_MVN__c where Program_Member__c =: pmId and RecordTypeId =: RT1Id]);
Can you please Let me know if it works or not!!!
If it helps don't forget to mark this as a best answer!!!
Thanks,
Raj