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
howard zien hpzienhoward zien hpzien 

i am trying to use workbench.

i have a custom object university__c.  I have another related custom object lkupmajor_c.
when i put this select statement in workbench:
select university__c  , name from lkupmajor__c

I get the record id for university instead of the university name.
Can you help? I expected to see teh university name

i get
  university__c Name
1 a01j000000ArpvKAAR philosophy
2 a01j000000ArpvKAAR mathematics
3 a01j000000ArrRHAAZ greek
4 a01j000000ArpvKAAR russian
5 a01j000000ArrRHAAZ sociology

 
William TranWilliam Tran
Try

select university__r.Name  , name from lkupmajor__c

As a common practice, if your question is answered, please choose 1 best answer.
But you can give every answer a thumb up if that answer is helpful to you.

Thanks
howard zien hpzienhoward zien hpzien
I tried your suggestion.  and received this error message.
Parent relationship queries are disabled in Workbench: university__r.Name

Due to issues rendering query results, parent relationship queries are disabled by default. If you understand these limitations, parent relationship queries can be enabled under Settings. Alternatively, parent relationship queries can be run with REST Explorer under the Utilities menu without issue.
howard zien hpzienhoward zien hpzien
i am not sure where to go to enable parent relationship queries
William TranWilliam Tran

Click on the Workbench logo in the upper left hand corner, select "Settings".  Under the Query & Search Options heading, select: "Allows SOQL Parent Relationship Queries"

Thx
howard zien hpzienhoward zien hpzien
perfect. this worked. thank you so much. this is the best answer. I don't know where to indicate this.
William TranWilliam Tran
THere is an icon for thumbs up and an icon for best answer, if you don't see it, try using a different browser.

Thx