Open Navigation

Google Contacts

The Google Contacts connector enables you to view and update contacts and contact groups in your Google Account.

Overview

The Google Contacts connector allows the user to read, create and update contacts and contact groups belonging to a Google Account.

Authentication

Note: Before authenticating any Google connector, you will need to whitelist the Tray.io Google authentication app. Please follow the instructions here before continuing with the authentication process.

Once this is done, you can click on the New Authentication button:

add-auth

This will open up a window which allows the authentication to be named and also displays the scopes that will be requested.

docs-selecting-scopes

Once the next button has been hit, you will be redirected to Google and asked to approve the authentication request.

docs-google-auth

Once it has been approved, you will be redirected back to the workflow view and the authentication will be ready to use.

Example 1: Creating a new contact

This example will walkthrough how to create a new Contact for your contact directory on Google.

The first step is to choose the Create contact operation.

select_create

The first required field is User email. User email input refers to the account that contact book belongs to. The value default which is provided means it will be placed into the contact book of the account that you authenticated with.

user_email

For this new contact, a name will be provided using the name input object.

supply_name

As well as a name, it will be associated with an email address. This is done by creating a new email object in the email array.

supply_email

This example contact needs to be assigned to a group. This can be done by suppling a group that it belongs to in the Group membership info object.

supply_contact_group

A note needs to be attached to this contact as well. This can be done using the notes field found in the input panel.

supply_notes

The workflow can now be ran as the contact is ready to be created. As can be seen, it ran successfully.

successful_run

It can also be seen on the Google Contacts UI.

google_contacts

Example 2: Creating a new contact group

This example will walkthrough how to create a new Contact group for your contact directory on Google.

The first step is to choose the Create contact group operation.

select_group_create

The first required field is User email. User email input refers to the account that contact book belongs to. The value default which is provided means it will be placed into the contact book of the account that you authenticated with.

user_email

For this new contact group, a name will be provided using the name field.

input_group_name

Added information about the new group can be added using key:value pairs in the extended properties object.

input_extended_properties

The workflow can now be ran as the contact group is ready to be created. As can be seen, it ran successfully.

succesful_run

It can also be seen on the Google Contacts UI.

in_google

Was this article helpful?
Yes
No