Salesforce: How to Setup Lightning Sync for Google (Beta)

Overview

To sync email from Gmail to Salesforce, use the Lightning for Gmail feature. If you require to sync events from Google Calendar to Salesforce, you will be required to setup Lightning Sync.

See steps below.

Setup Guide

This video will show the step by step to setup Lightning for Google – https://www.youtube.com/watch?v=6HHExMJIYOs

Note: Make sure you are using Google Enterprise & you are the admin of the enterprise account.

5 Setup steps – https://help.salesforce.com/articleView?id=lightning_sync_admin_google_implement.htm&type=0

Lightning Sync for Google (Beta) –https://help.salesforce.com/articleView?id=lightning_sync_admin_google_overview.htm&type=0&language=en_US&release=206.15

What you need

The below links will need to be opened on your browser:

  1. Salesforce Setup
  2. Gmail Admin Console – Admin.google.com
  3. Google API Console – console.developers.google.com

 

Prepare Google Account

Step 1: Enable Google API

  1. Go to Google API Console > Create new project. (You can call it Lightning Sync)
  2. Enable Calendar API & Contact API:-
    – Google App API > Calendar API > Enable
    – Google App API > Contact API > Enable
  3. Click on Credential on right panel
    – New Service Account
    – Service Account Name – Company Name
    – Role – Owner
    – Key Type – JSON
    Note: Keep the downloaded JSON file.
  4. Credential > Manage Service Account
    – Company Name > Edit
    – Enable Domain Y Delegation
    – Configure Consent Screen > Fill in anything relevant. Leave optional blank if unsure.

Step 2: Setup Google Admin Console

  1. Go to Gmail Admin Console
  2. Click More Control > Security > Show More > Advance Setting > Manage API Client Access
    – Client Name = Client ID (From Google API Service Account)
    – One or More API Scope = https://www.googleapis.com/auth/calendar.readonly, https://www.googleapis.com/auth/contacts.readonly, https://www.google.com/m8/feeds > Authorize

 

Enable Lightning Sync in SF

  1. Go to Salesforce Setup >Quick Find > Lightning Sync Setup > Enable
  2. On the Upload Your Google Private Key section > Click Update > Upload JSON file
    Note: Test connection using Connection Test: Fill in your user email. You will see success message once connected
  3. Setup sync setting
    – Go to Setup > Quick Find > Sync Configuration
    – Create New (You can name it Default)
    – Configure Sync setting on the Data Setting section
  4. Check sync Status
    – Go to Setup > Quick Find > Sync Status
    Note: You can see summary of sync records here

Install Lightning for Gmail extension

  1. Go to this link – https://chrome.google.com/webstore/detail/salesforce-lightning-for/jjghhkepijgakdammjldcbnjehfkfmha
  2. Click Add To Chrome
  3. See this documentation for how to use – https://help.salesforce.com/articleView?id=lightning_for_gmail_user_overview.htm&type=0&language=en_US&release=208.18