function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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?