Set up the Google Docs

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:5分
  • Integrate the ServiceNow instance and Google Docs by creating a custom OAuth application in G Suite credentials to authenticate ServiceNow requests.

    始める前に

    • Request an Integration Hub subscription.
    • Activate the Google Docs spoke.
    • Role required: admin.

    Configure Google Docs application

    Create a custom OAuth application from your G Suite account to enable OAuth 2.0 authentication with the Google Docs spoke.

    始める前に

    • A Google G Suite or login created with the domain
    • Role required: admin

    このタスクについて

    Complete these steps from your Google G Suite account. See the G Suite product documentation for instructions on creating and configuring custom applications.

    手順

    1. Register a new custom application.
      1. Navigate to https://console.developers.google.com.
      2. Create a project with your G Suite administrator credentials.
      3. Open the project.
    2. Set the Authorized domain.
      1. From the APIs & Services menu, select OAuth consent screen.
      2. Enter the application name.
      3. Specify the Authorized domain service-now.com.
      4. Click Save.
    3. Search for the Google Docs API and enable it.
    4. Create the OAuyth client ID.
      1. From the APIs & Services menu, select Credentials.
      2. Select Create OAuth client ID from the Create credentials list.
    5. Select the application type Web application.
    6. Enter the following Authorized redirect URI: https://<instance>.service-now.com/oauth_redirect.do and click Create.
      This redirect URI must match the Redirect URL you provide when you configure a connection for the Google Docs spoke.
    7. The OAuth client window shows your client ID and client secret.

      Copy these two values to a text file so that you can use them when you configure a connection for the Google Docs spoke.

      ヒント:

      You can always access the client ID and secret in the Google APIs & Services interface by clicking Credentials and select the OAuth 2.0 client ID name.

    Configure a connection for the Google Docs spoke

    Add and configure a Google Docs connection to authenticate ServiceNow requests in Google Docs spoke.

    始める前に

    手順

    1. Navigate to All > Process Automation > Workflow Studio.
    2. Select the Integrations tab.
    3. Select the Connections tab.
    4. In the Search all connections field, enter Google Docs.
    5. On the Google Docs card, select View Details.
      View Details button on Google Docs alias card.
    6. Select Configure.
      Button to open the Google Docs alias connection.
    7. On the Connection form, fill in the fields.
      Field Description
      Connection Name Name to uniquely identify the connection record. For example, Google Docs Connection.
      Connection URL Connection URL for the spoke. Enter https://www.googleapis.com/
      OAuth Entity Name Name to identify the OAuth entity record. For example, Google Docs entity.
      OAuth Client ID Client ID generated while creating the application in G suite.
      OAuth Client Secret Client secret generated while creating the application in G suite.
      OAuth Redirect URL Redirect URL of your ServiceNow instance in this format: https://<instance_name>.service-now.com/oauth_redirect.do .
    8. Click Configure and Get OAuth Token.
      Google Docs connection form.
    9. Log in to Google to get the OAuth token.

    タスクの結果

    The spoke connection is configured and ready to be used.