I have seen quite a few posts on this here at Stackexchange, followed them as mentioned, for some reason it is not working for me. I am trying to retrieve records from the custom Object[Segment] which has a lookup relationship with the Account Standard object.
I still have no idea why the below soql statements dont work.
select Id,Name,Segments__r.Id from Account select Id,Name,(select Id from Segments__r) from Account
For both the above queries this is the error message I get -
Didn't understand relationship 'Segments__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.