Adds a new person to Google Contacts.
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
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
-
.getContacts()
Returns contacts from the user's Google Contacts.
-
.findByEmailAddress()
Looks up a contact by email address.
-
.getContactGroup()
Returns a contact group by its name or ID.
More Apps Script
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.createContact().