You need to sign in to do that
Don't have an account?
anup-prakash
how can I access the parent object field through custom object
Hi,
I have a look up on custom object student to a custom object class. I was trying to access the name of class through SOQL but it is returning the ID instead of the class name.. So how can I access the class name itself instead of the ID..
http://boards.developerforce.com/t5/Apex-Code-Development/How-to-get-Account-Name-instead-of-ID-using-a-trigger/td-p/391241
All Answers
hi,
You have to use obj.id.fieldname
then it returns the name associated with the id.
studentName = [Select name, Class__r.Name From student__c ];
system.debug(studentName);
how will do it here?? Any help..
http://boards.developerforce.com/t5/Apex-Code-Development/How-to-get-Account-Name-instead-of-ID-using-a-trigger/td-p/391241