+ Start a Discussion
Abhiman MungalAbhiman Mungal 

position__c data = [Select Name,position_types__r.Name from position__c where Name='Java developer']; System.debug('Records'+data.position_types__r.name);

i try to run this query on ananomous window .it will give me some error like

Line: 1, Column: 20
Select Name,position_types__r.Name from position__c ^ ERROR at Row:1:Column:13 Didn't understand relationship 'position_types__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.

please give me some suggession on this
Raj VakatiRaj Vakati
Position__c data = [SELECT id, name, Position_Type__r.Name  FROM Position__c where Name='Java developer' Limit 1 ];