function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
suji srinivasansuji srinivasan 

How to query the managed package objects?



Task is the child of phase
when i try to query from child to parent,grand parent great grand parent.(App which i am trying is PMT)


i am getting error as
select Name,inov8__PMT_Phase__r.inov8__PMT_Project__r.name
            ^
ERROR at Row:1:Column:13
Didn't understand relationship 'inov8__PMT_Phase__r' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
select Name,inov8__PMT_Phase__r.Name from inov8__PMT_Task__c

Thanks in advance
Best Answer chosen by suji srinivasan
VinayVinay (Salesforce Developers) 
Hi Suji,

Can you re-check you relationship name? Go to your object and select your field and locate child relationship name.

Thanks,

All Answers

VinayVinay (Salesforce Developers) 
Hi Suji,

Can you re-check you relationship name? Go to your object and select your field and locate child relationship name.

Thanks,
This was selected as the best answer
suji srinivasansuji srinivasan
Hi vinay ,
thank you for your response.
I created subcontact__c object  and created lookup relationship  with contact .child relationship Name -subcontacts

1.I tried to query child to parent  
select Name, Account.Name from Contact  - got response
2.when i trield to query grand child to parent  getting error 
select Name, Contact.Account.Name from subcontact__c - got error

Can you clarify me, why i didnt get response?
Thanks in Advance.