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.
This information is available on Google Calendar API reference
When a new OAuth provider is created, the system automatically generates a default profile for it without any scope
Name: Create an Event
HTTP Method: POST
Endpoint: https://www.googleapis.com/calendar/v3/calendars/${calendarId}/events
Authentication type : OAuth 2.0
OAuth profile : Same as Parent (REST Message)
Content-Type : application/json
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}
] }
}
All this information will be available at in this article.
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,
Subscribe to our Newsletter
Subscribe to our Newsletter
Access new insights, employee stories, case studies and other activities going on in the Emergys enterprise