You need to sign in to do that
Don't have an account?
![Jyotirmoy B Jyotirmoy B](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Didn't understand relationship
I am writing a nested query in apex code but throwing error as Didn't understand relationship
Select Id,Name,MedConnect__Account_Name__c,(select Unity_Product_Code__c from Impacted_Products__r limit 1 ) from MedConnect__Product_Complaint__c limit 10
ParentObject- MedConnect__Product_Complaint__c
Child Object- MedConnect__Impacted_Product__c
Child Relationship Name - Impacted_Products
could any one please tell me, if the query is wrong
Select Id,Name,MedConnect__Account_Name__c,(select Unity_Product_Code__c from Impacted_Products__r limit 1 ) from MedConnect__Product_Complaint__c limit 10
ParentObject- MedConnect__Product_Complaint__c
Child Object- MedConnect__Impacted_Product__c
Child Relationship Name - Impacted_Products
could any one please tell me, if the query is wrong
Select Id,Name,MedConnect__Account_Name__c,(select Unity_Product_Code__c from MedConnect__Impacted_Products__r limit 1 ) from MedConnect__Product_Complaint__c limit 10
All Answers
Select Id,Name,MedConnect__Account_Name__c,(select Unity_Product_Code__c from MedConnect__Impacted_Products__r limit 1 ) from MedConnect__Product_Complaint__c limit 10