Google Integration

Steps to Set Up Google Authorization

  1. In your web browser, open the following URL: https://console.developers.google.com/
  2. If a Terms of Service window pops up, click AGREE AND CONTINUE in the bottom right corner

    Note:
    You may or may not see this popup.
  3. On the Google Cloud page, click the CREATE PROJECT button

  4. Fill out the required details and click the CREATE button

  5. After creating the project, click the Credentials link in the left column

  6. On the Credentials page, click CREATE CREDENTIALS and select OAuth client Id in the dropdown



  7. On the Create OAuth client ID page, click on the CONFIGURE CONSENT SCREEN button

  8. On the OAuth consent screen, select the User Type according to your needs, then click CREATE

  9. Fill out all the required fields on the App Registration page. Click SAVE AND CONTINUE
    Note:
    You don't add a value to the "App Domain" section.


  10. Leave the Scopes page as it is and click SAVE AND CONTINUE

  11. Click on the Credentials link again

  12. Click CREATE CREDENTIALS and select OAuth client ID in the drop-down

  13. On the Create OAuth client ID page, select "Web Application" as the application type

  14. Click on the ADD URL button under "Authorized Redirect URL"

  15. Place your org domain URL in the URL box and append apex/ErxEventGoogleCalendarAuth
    Note:
    Example: https://enterprise-site-5151-dev-ed.lightning.force.com/apex/ErxEventGoogleCalendarAuth
  16. Alternatively, you can go to your Salesforce org setup and search "Visualforce Pages" in the Quick Find box
  17. Select ErxEventGoogleCalendarAuth and click the Preview button

  18. A new page will open. Copy the URL of the page and paste it in the Redirect URL field on the Google "Create OAuth client ID" page

  19. Click the CREATE button

  20. The Client ID and Client Secret will be generated

Enable the API and Google Calendar Services

  1. Search "Calendar" in the search field and select Google Calendar API

  2. Next, select Enable APIs & Services in the left column

  3. Click the Enable button

Final Configurations in Your Salesforce Org

  1. In your Salesforce org, click Setup
  2. In the Quick Find box, search "Custom Metadata Types"

  3. On the All Custom Metadata Types page, click "Manage Records" next to "Calendar Auth Settings"
  4. Click New

  5. Add the Label and Calendar Auth Setting Name and click Save

  6. Edit this record and add the Client ID, Client Secret, and Redirect URL in their respective fields

  7. Click Save
  8. Next, in the Quick Find box, search for "Remote Site Settings"
  9. On the Remote Site Settings page, click New Remote Site

  10. Choose any name for the Remote Site, but the URL must be https://accounts.google.com. Click Save & New

  11. Give any name to the Remote Site, but here the Remote Site URL should be https://www.googleapis.com. Click Save