Skip to main content
Mir Mehdi Ali (Salesforce) a posé une question dans #SOQL Queries

Hi, I have Asset record related to two seperate account records. I am trying to get some information from the custom relationship to the second account record. When I simply write this query 

SELECT Name, AccountId, Account.name, Account.name.phone FROM Asset  I get the Primary account result. not sure how can I query the second account information 

7 réponses
  1. 25 sept. 2021, 00:53

    yes. Thats how cross reference formula are written.. its __r.. to refer

     

    Help Mark best answer to help other trailblazers.

0/9000