+ Start a Discussion
sp13sp13 

is it possible to not be able to query fields of a custom object

is it possible to not be able to query fields of a custom object?

when i run:   select Project_1__c from Leave_Application__c  ----it returns the id of the projects

but when i run:    select Project_1__r.name from Leave_Application__c  ----it doesnt return the name of the projects but the result of total rows are the same.


PS. i tried to run this in the query editor in developer console.

Sandeep001Sandeep001

It should give you the parent project name of an application. Did you try accessing it using Project_1__r.name?

sp13sp13

@sandeep001: yes, i tried Project_1__r.name and it didn't return any value. do you have any idea what might be the problem?