Tuesday, January 29, 2013

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.
 
SELECT Case__r.caseNumber,Account__r.Name FROM Case_Account__c

Put __r at the behind of lookup object.

No comments:

Post a Comment