Set up the Google Docs
Integrate the ServiceNow instance and Google Docs by creating a custom OAuth application in G Suite credentials to authenticate ServiceNow requests.
Before you begin
- 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.
Before you begin
- A Google G Suite or login created with the domain
- Role required: admin
About this task
Complete these steps from your Google G Suite account. See the G Suite product documentation for instructions on creating and configuring custom applications.
Procedure
Register a new custom application.
Navigate to https://console.developers.google.com.
Create a project with your G Suite administrator credentials.
Open the project.
Set the Authorized domain.
From the APIs & Services menu, select OAuth consent screen.
Enter the application name.
Specify the Authorized domain
service-now.com.Click Save.
Search for the Google Docs API and enable it.
Create the OAuyth client ID.
From the APIs & Services menu, select Credentials.
Select Create OAuth client ID from the Create credentials list.
Select the application type Web application.
Enter the following Authorized redirect URI:
https://<instance>.service-now.com/oauth_redirect.doand click Create.This redirect URI must match the Redirect URL you provide when you configure a connection for the Google Docs spoke.
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.
Tip:
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.
Before you begin
- Configure Google Docs application
- Role required: admin
Procedure
Navigate to All > Process Automation > Workflow Studio.
Select the Integrations tab.
Select the Connections tab.
In the Search all connections field, enter
Google Docs.On the Google Docs card, select View Details.
View Details button on Google Docs alias card.
- Select Configure.
Button to open the Google Docs alias connection.
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.Click Configure and Get OAuth Token.
Google Docs connection form.
- Log in to Google to get the OAuth token.
Result
The spoke connection is configured and ready to be used.