SHARE
TWEET

Untitled

a guest Jun 15th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. List<contact> myContact = [SELECT Id,Name,contact.Account.Name,contact.Account.BillingStreet from Contact];
  2.  
  3. for(contact myCont : myContact)
  4. {
  5.     for(Account acc : myCont.Account)
  6.     {
  7.         System.debug('**** Contact ***** '+myCont);
  8.     }
  9. }
  10.      
  11. List<contact> myContact = [SELECT Id,Name,contact.Account.Name,contact.Account.BillingStreet from Contact];
  12.     for(contact myCont : myContact)
  13.     {
  14.             System.debug('**** Contact ***** '+myCont);
  15.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top