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
staging serverstaging server 

Query on Opportunity Object returns [object Object] for Owner.UserRole.Name

I have this query:

SELECT Account.Id, Account.Name, Account.Industry, Account.Sales_Abteilung__c, Id, Owner.Name, CloseDate, StageName, Type, TotalOpportunityQuantity, Amount, Einzelpreis__c, Owner.UserRole.Name, Angebotsnr__c FROM Opportunity

And for the column 'Owner.UserRole.Name' the query returns [object Object]

I found this Stack Exchange question:

https://salesforce.stackexchange.com/questions/41833/owner-userrole-name-is-not-accessible

where one of the comments suggest this could be a bug in the developer's console? I am pretty sure I am calling the object reference correctly - according to other questions on Salesforce forums I've seen. 

Shamsi 110Shamsi 110
I do not think it is Owner field that is causing something check your custom fields industry field.