class ContactsApp method .getContacts()

ContactsApp is the Apps Script service.

.getContacts() is the method name you will see after a dot in your code.

What it does

Returns contacts from the user's Google Contacts.

Why it's used

  • Build a mail-merge list from Google Contacts.
  • Sync names and emails into a roster sheet.

Common errors

  • Forgetting parentheses on getContacts. Write ContactsApp.getContacts(), not ContactsApp.getContacts or getContacts by itself.
  • Skipping dots between chained calls. Each step needs a dot, like ContactsApp.getContacts().
  • Adding spaces where they do not belong. Write ContactsApp.getContacts(), not ContactsApp .getContacts(), ContactsApp.getContacts (), or ContactsApp . getContacts().
  • Wrong capitalization. Use ContactsApp and getContacts, not contactsapp or getcontacts.

Explore

Related methods

Better Sheets tutorials

No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.

Related blog posts

Written guides about ContactsApp.getContacts().

Browse the blog
Big Year 2027 calendar: the whole year on one Google Sheet

Free 2027 calendar.Plan all of 2027 on one Google Sheet, free.

Copy it to your Google Drive.

Free. No password, no card. The sheet link shows up right here.