Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<contact> myContact = [SELECT Id,Name,contact.Account.Name,contact.Account.BillingStreet from Contact];
- for(contact myCont : myContact)
- {
- for(Account acc : myCont.Account)
- {
- System.debug('**** Contact ***** '+myCont);
- }
- }
- List<contact> myContact = [SELECT Id,Name,contact.Account.Name,contact.Account.BillingStreet from Contact];
- for(contact myCont : myContact)
- {
- System.debug('**** Contact ***** '+myCont);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement