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
Nikita Yadav 17Nikita Yadav 17 

SOQL Query on Std Order object

Anybody can explain this?
below queries are not working.Why? Whats the right way to do?

SELECT Id, BillToContactId.Name FROM Order

SELECT Id, BillToContactId__r.Name FROM Order


Also any workaround if needed.

Thanks in advance.
 
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Nikitha,
Can you try this query.
 
SELECT Id, BillToContact.Name FROM Order

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,