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
Demi DevDemi Dev 

Assistance with SOQL query.

Inquiry_Management__c is connected to Contact by master-detail.
The plural of Inquiry_Management__c is Inquiry_Management__c.

 
SELECT Salesforce_18_Digit_ID__c, 
firstName,
lastName,
Text_OK__c,

(SELECT Activity_Date__c
FROM Inquiry_Management__c
WHERE Activity_Date__c>=2020-01-01T12:00:00Z
)

FROM Contact

Error:
FROM Inquiry_Management__c
     ^
ERROR at Row:7:Column:6
Didn't understand relationship 'Inquiry_Management__c' in FROM part of query call. 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.
Best Answer chosen by Demi Dev
AbhishekAbhishek (Salesforce Developers) 
Check the suggestions as mentioned in the below developer discussions,

https://developer.salesforce.com/forums/?id=906F00000008xaHIAQ

https://salesforce.stackexchange.com/questions/53638/what-is-wrong-with-my-relationship


If it helps you and close your query by marking it as the Best answer so that it can help others in the future.

Thanks.

All Answers

AbhishekAbhishek (Salesforce Developers) 
Check the suggestions as mentioned in the below developer discussions,

https://developer.salesforce.com/forums/?id=906F00000008xaHIAQ

https://salesforce.stackexchange.com/questions/53638/what-is-wrong-with-my-relationship


If it helps you and close your query by marking it as the Best answer so that it can help others in the future.

Thanks.
This was selected as the best answer
Demi DevDemi Dev
This was perfect!