Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement