Google Calendar Connector
Documentation
Version: 6
Documentation

Table Events


Description

Insert, update, delete and list datasets

Parameters

Parameter Label Required Options Description Help
There are no parameters

Supported Operations

Below section contains supported CRUD operations. Each operation is executed by some EndPoint behind the scene.
Method Supported Reference EndPoint
SELECT list_events
INSERT create_event
UPDATE
UPSERT
DELETE delete_event
LOOKUP

Examples

SSIS

Use Google Calendar Connector in API Source component to read data or in API Destination component to read/write data:

Read from Events table using API Source

Google Calendar
Events
SSIS API Source - Read from table or endpoint

Read/write to Events table using API Destination

Google Calendar
Events
Select
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

List events

Lists events

SELECT * FROM Events
  WITH (CalendarId='MyCalendarId')

Create event

Creates event

INSERT INTO Events(StartsAt, StartsInTimeZone, EndsAt, EndsInTimeZone, Summary,
  Attendees, Description, Location, Status, Transparency, Visibility)
  VALUES ('2021-11-26T16:30:50', 'Europe/Vilnius', '2021-11-27T16:30:50','Europe/Vilnius', 'This is an event',
          null, 'My Description', 'Vilnius', 'confirmed', 'opaque', 'default')
  WITH (CalendarId='YourCalendarId')

Get event

Gets event

DELETE FROM Events
    WITH (CalendarId='MyCalendarId',
    EventId='MyEventId')

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

List events

Lists events

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Events
  WITH (CalendarId=''MyCalendarId'')';

EXEC (@MyQuery) AT [LINKED_SERVER_TO_GOOGLE_CALENDAR_IN_DATA_GATEWAY];

Create event

Creates event

DECLARE @MyQuery NVARCHAR(MAX) = 'INSERT INTO Events(StartsAt, StartsInTimeZone, EndsAt, EndsInTimeZone, Summary,
  Attendees, Description, Location, Status, Transparency, Visibility)
  VALUES (''2021-11-26T16:30:50'', ''Europe/Vilnius'', ''2021-11-27T16:30:50'',''Europe/Vilnius'', ''This is an event'',
          null, ''My Description'', ''Vilnius'', ''confirmed'', ''opaque'', ''default'')
  WITH (CalendarId=''YourCalendarId'')';

EXEC (@MyQuery) AT [LINKED_SERVER_TO_GOOGLE_CALENDAR_IN_DATA_GATEWAY];

Get event

Gets event

DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM Events
    WITH (CalendarId=''MyCalendarId'',
    EventId=''MyEventId'')';

EXEC (@MyQuery) AT [LINKED_SERVER_TO_GOOGLE_CALENDAR_IN_DATA_GATEWAY];