The Now Platform® Washington DC release is live. Watch now!

Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
beingfluid
Tera Guru
Tera Guru

Hi Developers,

I'm back and this time I am going to guide you to Schedule a Google Meet from ServiceNow.

In this first part I'll be guiding you on how to connect ServiceNow with Google APIs for Calendar. 

In next parts we will be discussing how to create a REST Message and use it to schedule a meeting.

So let's begin. ..

 

Step 1) Visit https://developers.google.com/calendar and click 'Sign in'

find_real_file.png

Step 2) Login with your Gmail credentials

find_real_file.png

Step 3) Navigate to the section 'Reference' and select 'insert' under 'Events' menu options

find_real_file.png

Step 4) In new tab visit https://console.developers.google.com/, Select your country, accept the terms and click 'AGREE AND CONTINUE'

find_real_file.png

Step 5) Click 'CREATE PROJECT'

find_real_file.png

Step 6) Give it a unique name and click 'CREATE'

find_real_file.png

Step 7) Click 'ENABLE APIS AND SERVICES'

find_real_file.png

Step 😎 Search for calendar and select 'Google Calendar API'

find_real_file.png

Step 9) Click 'ENABLE'

find_real_file.png

Step 10) Select 'Credentials' from menu options

find_real_file.png

 

Step 11) Click 'CREATE CREDENTIALS' and select OAuth client ID'

find_real_file.png

Step 12) Select 'CONFIGURE CONSENT SCREEN'

find_real_file.png

Step 13) Select 'External' and click 'CREATE'

find_real_file.png

Step 14) Give it a unique name

find_real_file.png

Step 15) Click 'Save'

find_real_file.png

Step 16) Navigate back to Credentials and select 'OAuth client ID' under 'CREATE CREDENTIALS' 

find_real_file.png

Step 17) Select Application type as 'Web application' and give it a unique name

find_real_file.png

 

Step 18) Click 'CREATE'

find_real_file.png

Step 19) Note down the OAuth 'Client ID' & 'Client Secret' and click 'OK'

find_real_file.png

Step 20) Click the download icon beside your Client ID

find_real_file.png

Step 21) Open the downloaded json file in text editor

find_real_file.png

Step 22) In ServiceNow, Navigate to System OAuth > Application Registry and click 'New'

find_real_file.png

Step 23) Select 'Connect to a third party OAuth Provider'

find_real_file.png

Step 24) Give it a unique name and copy to fill the information (client_id, auth_uri, token_uri, client_secret) from the downloaded json file opened in text editor

find_real_file.png

Step 25) Select 'Default Grant type' as 'Authorization Code'

find_real_file.png

Step 26) Under the section 'OAuth Entity Scopes' create two records as follows and click 'Submit'

Calendar : https://www.googleapis.com/auth/calendar

CalendarEvent : https://www.googleapis.com/auth/calendar.events

find_real_file.png

The above information is available and copied from the API Reference web page opened in step 3

find_real_file.png

Step 27) Open the record again and copy the Redirect URL

find_real_file.png

Step 28) Navigate back to the page opened in step 20 and click on your OAuth 2.0 Client ID record

find_real_file.png

Step 29) Click "ADD URI' under 'Authorized redirect URIs', paste the Redirect URI Copied from step 27 and click 'SAVE'

 find_real_file.png

So here we are done with the first part of this article and we have successfully created an OAuth Connection between Google Calendar APIs with ServiceNow.

Please go through the second part of this article to learn how to create a REST Message to use this API.

Thank You,

Vishal Ingle

ServiceNow Certified System Administrator

DxSherpa Technologies Pvt. Ltd.

Maharashtra, IN.

Comments
AbhishekGardade
Mega Sage
Mega Sage

@Vishal Ingle ,

This is really good stuff and really informative.. 

Keep up the good work.

- Abhishek Gardade

beingfluid
Tera Guru
Tera Guru

Thank you Abhishek. .. I am looking forward to put everything I learnt here on community. .. 

Sunit Amin
Tera Contributor

Can we synchronize the ServiceNow and Google calendar.

I am able to create an event in Google calendar triggered through an Business Rules.

But I want the event to be cancelled through Business rule triggered in ServiceNow

Sushma G Muttal
Tera Contributor

Hi Vishal,

Really good content !!!!!

I went thru your post and did all the steps required to integrate SNOW with Google calendar and am able to create events too but am stuck now as I want to cancel the events from SNOW and am not able to move ahead. Can you throw some ideas on this ........ It will be very helpful

Thanks in advance

Sushma G Muttalli 

 

 

Version history
Last update:
‎07-20-2020 05:58 AM
Updated by: