Setup Google Authentication
This article explains how to connect your GoMeddo environment with your Google Calendar environment.
GoMeddo allows you to sync Dimension records with Google calendars.
In order for the GoMeddo Google Calendar extension to work, you will need to setup and deploy My Domain to your users.
Google Calendar configuration
Go to the Google API Console
Create a project for GoMeddo Google Workspace Integration
Go to Library in the API Console and make sure the GoMeddo project is selected
Search for Google Calendar API and enable it for this project
Go to Credentials in the API console and make sure the GoMeddo project is selected
Click Create Credentials and then Service Account
Go through the Service Account creation process
Go to the Service Account Detail page and enable Domain Wide Delegation
Copy the Email, you will need it in a later stage
Copy the Unique ID, you will need it in a later stage
Go to the Keys tab and generate a new key in the p12 format. Remember the password given to you by Google and save the file
The key file generated from this is required to connect the Salesforce environment to the Google Workspace environment.
Keep this key secure because anyone with this key has the same access to the Google Workspace account as GoMeddo.
This key is in the wrong format to use in Salesforce, hence we first have to convert it. Start by renaming the file you just downloaded to something more simple going forward, such as salesforce-gomeddo.p12
Run the following command in the folder where the salesforce-gomeddo.p12 file is:
keytool -importkeystore -destkeystore salesforce-gomeddo.jks -srckeystore salesforce-gomeddo.p12 -srcstoretype pkcs12 -deststoretype JKS
The system will prompt you for a new password: for the key file, use the same password as provided by Google for the p12 file. You will be then asked to confirm the password.
After doing these steps you should now have a salesforce-gomeddo.jks file in the same directory.
Go to certs in salesforce and import the cert.
Copy the Certificate’s Unique Name (you will need it in a further step)
Setup domain wide delegation
Go to the google admin console to give the service account the permission to act on behalve of other users.
Click security
Click api controls
Click manage domain wide delegation
Click add new and set the client id to the client id that was created with your service account
add the following scope
https://www.googleapis.com/auth/calendar.events, https://www.googleapis.com/auth/calendar
Click Authorize
GoMeddo configuration
Go to the Settings tab in the GoMeddo app
Go to the Google Calendar Settings sub-tab
Fill in the Service Account Email and Update service account email
Fill in the Certificate Name with the Unique Name of the certificate and Update certificate name
Click Check Connection