Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Set Up and Maintain Net Zero Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Integrate Google Docs with Salesforce for Net Zero Cloud

          Integrate Google Docs with Salesforce for Net Zero Cloud

          Author disclosure reports directly in Google Docs by using the Salesforce Disclosure and Compliance Hub Connector add-on. To establish a secure connection between Salesforce and the add-in, configure a Google Developer client, authentication provider, and named credential.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions

          Before you begin the integration of Google Docs with Salesforce for Net Zero Cloud:

          • Log in to Google.
          • Create a Google Developer account.

          Salesforce Disclosure and Compliance Hub Connector add-on supports the Android, Microsoft Windows, and iOS operating systems, and the latest stable browser versions of Apple Safari, Mozilla Firefox, and Google Chrome.

          See Supported Browsers and Devices for Salesforce Contracts Connector for Word Add-In. The article is written for Salesforce Contracts users, but the steps apply to Net Zero Cloud.

          1. Establish a connection between Salesforce and Google by configuring a Google Client app.
          2. Establish a secure connection between Salesforce and Google by adding an authentication provider credential.
          3. Add a named credential to use the external document storage configuration.
          4. For legacy named credentials that use per-user authentication, grant access to users through permission sets and profiles.
          5. To generate disclosure reports with the Salesforce Disclosure and Compliance Hub add-on for Google Docs, select Google Docs for Get Disclosure and Compliance Hub Plugin.

          Create a Connection Between Salesforce and Google

          Configure a Google Client app to establish a connection between Salesforce and Google.

          Required Editions

          User Permissions Needed
          To register a client application on Google: Google access
          1. Open Google Console, and log in to your Google account.
          2. Search for app registration, and then click NEW PROJECT.
          3. Enter the registration details.
            1. Enter a name for the app, for example, Google Client.
            2. Click Create.
          4. From the project creation notification, select the project that you created.
            1. From API & Services, select Enabled APIs & services.
            2. Click Enable APIs and services.
            3. Search for and enable Google Drive API and Google Docs API.
          5. Add and save credentials.
            1. Click Credentials.
            2. Click CREATE CREDENTIALS and select OAuth client ID.
            3. Click CONFIGURE CONSENT SCREEN.
            4. Select Internal and click CREATE.
            5. On the OAuth consent screen tab, enter the app information.
            6. On the Scopes tab, click ADD OR REMOVE SCOPES.
            7. Select openid, email, profile, and Google Drive API https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/documents.currentonly
            8. Save your changes.
          6. Save your client information.
            1. Click Credentials.
            2. From the OAuth 2.0 Client IDs section, download the credentials of the client you created.
            3. Copy and save the Google client ID and Google client secret values.
              You need these values when you configure your authentication provider. If you don’t copy the client secret value now, you can’t retrieve it, and must create a new one.

          Configure an Authentication Provider for Google Client App

          Add an authentication provider credential to establish a secure connection between Salesforce and Google.

          Required Editions

          User Permissions Needed
          To view the settings: View Setup and Configuration
          To edit the settings: Customize Application
          To configure Auth. Provider: Manage Auth. Providers
          1. From Setup, in the Quick Find box, enter Auth. Providers, and then select Auth. Providers.
          2. Click New.
          3. For the provider type, select Open ID Connect.
          4. For the authentication provider name, enter Google App.
          5. For the consumer key, enter your Google client ID.
          6. For the consumer secret, enter your Google client secret value.
          7. For the authorize endpoint URL, enter https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=force.
          8. For the token endpoint URL, enter https://oauth2.googleapis.com/token.
          9. For the user info endpoint URL, enter https://www.googleapis.com/oauth2/v1/userinfo.
          10. For the default scopes, enter openid email profile https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/documents.currentonly.

            Make sure that Default Scopes matches the API permissions that you added to your Google account. See Create a Connection Between Salesforce and Google.

          11. Deselect Send client credentials in header.
          12. Select Send access token in header and Include Consumer Secret in SOAP API Responses.
          13. For the registration handler, select Automatically create a registration handler template.
          14. For how to execute the registration, select your system admin account.
          15. Save your changes.
          16. Under Salesforce Configurations, verify that these URLs are generated.
            • Test-Only Initialization URL
            • Single Sign-On Initialization URL
            • Existing User Linking URL
            • OAuth-Only Initialization URL
            • Callback URL
            • Single Logout URL
          17. If your Salesforce org has an Experience Cloud site, expand Experience Cloud Sites and verify that these URLs are generated.
            • Test-Only Initialization URL
            • Single Sign-On Initialization URL
            • Existing User Linking URL
            • OAuth-Only Initialization URL
            • Callback URL
          18. Save your changes.
            After you save the Auth. Provider, a Registration Handler Apex class is created. For example, AutocreatedRegHandler1234567890123.
          19. Disable email notifications.
            You can also disable email notifications when you link your Salesforce account with your Google account and update the Salesforce email address with your Google account.
            1. Click the Registration Handler Apex class link.
            2. Click Edit.
            3. Search for the updateUser method, and remove or comment out this entry.
              //u.email = data.email; //u.lastName = data.lastName; //u.firstName = data.firstName;
            4. Save your changes.
          20. Add the Callback URL.
            1. Go back to your authentication provider.
            2. In the Salesforce Configuration section, copy the callback URL.
            3. Open your Google Client account, and click Credentials.
            4. Paste the redirect URI in URIs and save your changes.
            5. If you have a partner community set up, go to the Auth. Provider in your org.
            6. From the Experience Cloud Sites section, copy the redirect URI.
            7. Open your Google Client account, and click Credentials.
            8. Click ADD URI.
            9. Paste the Experience Cloud Site redirect URI, and save your changes.
          21. Test the Auth. Provider authentication.
            1. From the Salesforce Configuration section, copy the Test-Only Initialization URL.
            2. Paste the URL in the address bar, and press Enter.
            Log in to the third-party provider and you’re redirected back to your Salesforce org.

          Create a Named Credential for Google Client App

          Add a named credential to use the external document storage configuration. Specify the Google Drive location in the external document storage configuration so that the generated contract documents and document templates are stored in a single location.

          Required Editions

          User Permissions Needed
          To view named credentials: View Setup and Configuration
          To create, edit, or delete named credentials: Customize Application
          To authenticate on Google Console: Google access
          1. From Setup, in the Quick Find box, enter Named Credentials, and then select Named Credentials.
          2. From the actions menu, select New Legacy.
          3. For Label, enter GoogleClient.
          4. For URL, enter https://www.googleapis.com.
          5. For Identity Type, select Per User.
          6. For Authentication Protocol, select OAuth 2.0.
          7. For Authentication Provider, select the authentication provider.
          8. Select Start Authentication Flow on Save.
          9. Select Generate Authorization Header.
          10. Save your changes.

            The named credential’s authentication status changes to Authenticated when the Google account is authenticated.

            Note
            Note If your Google account is already authenticated in your current browser session, you can successfully authenticate your named credential. If it isn't, authenticate your named credential by using your Google account credentials.
           
          Loading
          Salesforce Help | Article