You need to sign in to do that
Don't have an account?
Gurchet Singh 11
when i get lookup field(Course__r.Name) in child object's(Subject__c) select query then it returns id rather then name
Query:
SELECT studentmanage__Course__c.Name FROM studentmanage__subject__c;
SELECT studentmanage__Course__c.Name FROM studentmanage__subject__c;
It should return Name of the corresponding Parent record. Where have you tested it?
Can you try using below:
studentmanage__subject__c obj= [SELECT studentmanage__Course__r.Name FROM studentmanage__subject__c LIMIT 1];
system.debug(obj.studentmanage__Course__r.Name);