To set up the Google Drive integration, you will need to assemble an Authorized Redirect URL with the instructions below.
Find Your My Domain Name
To find your organization's My Domain name, go to Setup >> Quick Find: My Domain (see below).
Find the Sandbox Name (only if using a sandbox)
If you are installing into a sandbox, then you will need the name of the sandbox as well. To find your sandbox name, (while logged into the sandbox) look at the top of any page (see below).
Assemble Your URL
With Enhanced Domains enabled:
- Production -
https://[your salesforce my domain]--advpm.vf.force.com/apex/AuthenticateGDrive
- Sandbox -
https://[your salesforce my domain]--[your sandbox name]--advpm.sandbox.vf.force.com/apex/AuthenticateGDrive
Without Enhanced Domains:
- Production -
https://[your salesforce my domain]--advpm.visualforce.com/apex/AuthenticateGDrive
- Sandbox -
https://[your salesforce my domain]--[your sandbox name]--advpm.[instance_name].visualforce.com/apex/AuthenticateGDrive
- My Domain name = acmecompany
- Sandbox Name = sandbox1
If installing into a production org, then this link would be used -
-
When Enhanced Domains is enabled:
https://acmecompany--advpm.vf.force.com/apex/AuthenticateGDrive
-
When Enhanced Domains is not enabled:
https://acmecompany--advpm.visualforce.com/apex/AuthenticateGDrive
If installing into a sandbox, then this link would be used -
-
When Enhanced Domains is enabled:
https://acmecompany--sandbox1--advpm.sandbox.vf.force.com/apex/AuthenticateGDrive
-
When Enhanced Domains is not enabled:
https://acmecompany--sandbox1--advpm.visualforce.com/apex/AuthenticateGDrive
ATTENTION! IMPORTANT CONFIGURATION UPDATE 👀
When Enhanced Domains is enabled or disabled within an organization, it will impact the authorized url needed for authenticating users within the integration. Whenever such configuration change is deployed within your organization, your administrator must assemble the new updated URL as explained above and update according to instructions specified below.
The redirect url assembled above should be added within the Google Cloud Console Project.
How To Update Your Authorized Redirect URL
- Go to https://console.developers.google.com and log in to the Google Cloud Console using your Google account.
- Once signed in, select the drop-down menu at the top-left corner and you will see a list of existing projects. Select the project that was set up to authorize your Google Drive integration previously.
- Under the Quick access section, click on the APIs and Services action link.
- From the sidebar, click on the Credentials menu item.
- Find your previously saved credential under OAuth 2.0 Client IDs section, and click on the name.
- On the screen that is opened, and under the section named Authorized Redirect URIs, click + Add URI button to add new rows and enter your assembled URL from above.
- Click on Save button.