class ContactsApp method .createContact()

ContactsApp is the Apps Script service.

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

What it does

Adds a new person to Google Contacts.

Why it's used

  • Add a new lead to Contacts when a form comes in.
  • Keep CRM-style records without leaving your script.

Common errors

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

Explore

Related methods

Better Sheets tutorials

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