user2033727
user2033727

Reputation: 21

ContactsApp getFullName() returns nothing from contacts added from Directory

  1. I have Google Directory that I want to share contacts and their information within my domain
  2. I go to domain user's google contacts and add all the directory contacts into "My Contacts"

Problem: I can't get the name from the specified contact when I add my Directory contacts into "My Contacts". There are some strange solutions I've found:

Upvotes: 0

Views: 706

Answers (1)

Corey G
Corey G

Reputation: 7858

I can't be 100% sure, but I suspect strongly that adding a contact from the shared directory to your own contacts doesn't really copy it over until you do something that edits the contact (like sending them an email or adding them to a group). Apps Script sees the same contacts that are exposed in the Google Contacts GData API, but it does not currently have the ability to see directory contacts, so this would explain your results.

Upvotes: 1

Related Questions