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
swain 10swain 10 

SOQL [object Object] result issue?

select Customer__r.Name,CDP_Asset__r.Deal__r.Name,CDP_Asset__r.Deal__r.Market__r.Name,CDP_Asset__r.Deal__r.Type__c,CDP_Asset__r.Deal__r.Stage__c from CDP_Asset_Customer_Account__c where Customer__r.Id IN ('001U000000SunAAIAZ')

I am getting [Object Object] in the querry result for the 2nd value in developer console and so in my component.
But its working fine in workbench . how to resolve?
Niraj Kr SinghNiraj Kr Singh
Hi swain,

For relational field, you will get [Object Object] always in Developer console Query Editor. If you will iterate over the record and check for the related field in system.debug() log, you will get the value in developer console.