How to retrieve data from lookup?
How to retrieve data from lookup?
Example below shows that Case_Account__c contain lookup on Case and Account.
Put __r at the behind of lookup object.
Example below shows that Case_Account__c contain lookup on Case and Account.
SELECT Case__r.caseNumber,Account__r.Name FROM Case_Account__c
Put __r at the behind of lookup object.
Comments
Post a Comment