Guest User

Untitled

a guest
Apr 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. var contacts = ContactsApp.getContactsByName('John Doe');
  2. var homeAddress = contacts[0].getAddresses(ContactsApp.Field.HOME_ADDRESS);
  3. Logger.log(homeAddress[0].getAddress());
  4.  
  5. TypeError: Cannot call method "getAddress" of undefined
Add Comment
Please, Sign In to add comment