Hi Developers,

This is the second article in the three part series for integrating ServiceNow with Google Calendar to schedule a meeting through Virtual Agent.

You need to follow the steps mentioned in the first article to continue with this post.

img-001

img-002

img-003

This information is available on Google Calendar API reference

img-003-a

img-004

img-005

When a new OAuth provider is created, the system automatically generates a default profile for it without any scope

img-005-a

img-006

img-007

Name: Create an Event

HTTP Method: POST

Endpoint: https://www.googleapis.com/calendar/v3/calendars/${calendarId}/events

img-008

Authentication type : OAuth 2.0

OAuth profile : Same as Parent (REST Message)

img-008-a

Content-Type : application/json

img-008-b

Put the below script in the ‘Content’ field’ and click ‘Update’
{
‘summary’: ‘Google I/O 2015’,
‘location’: ‘Online on Meet’,
‘description’: ‘Testing Google Calendar APIs.’,
‘start’: {
‘dateTime’: ‘2020-07-21T09:00:00-07:00’,
‘timeZone’: ‘America/Los_Angeles’
},
‘end’: {
‘dateTime’: ‘2020-07-21T17:00:00-07:00’,
‘timeZone’: ‘America/Los_Angeles’
},
‘recurrence’: [
‘RRULE:FREQ=DAILY;COUNT=2’
],
‘attendees’: [
{’email’: ‘[email protected]’},
{’email’: ‘[email protected]’}
],
‘reminders’: {
‘useDefault’: false,
‘overrides’: [
{‘method’: ’email’, ‘minutes’: 1440},
{‘method’: ‘popup’, ‘minutes’: 10}
] }
}

img-008-c

All this information will be available at in this article.

img-008-d

img-009

img-010

img-011

img-012

img-013

img-014

img-015

img-015-a

img-015-b

Congratulations, So far we have built a rest message to schedule a meeting. In the next part we will integrate it with Virtual Agent.

Thank you,

Explore More on ServiceNow

  • BROCHURE

    360 Degree Assessment with ServiceNow

  • BROCHURE

    24×7 Support Offering with ServiceNow

  • BROCHURE

    Redefining Customer Journey in BFSI with ServiceNow

  • BROCHURE

    Emergys ServiceNow Offerings

Subscribe to our Newsletter

Subscribe to our Newsletter

Access new insights, employee stories, case studies and other activities going on in the Emergys enterprise