Google Calendar — Get event by ID
Google Calendar — Get event by ID
Section titled “Google Calendar — Get event by ID”Type: googlecalendar-get-event · Package: Google Calendar v1.0.5 · Output: Dictionary<string,object>
Gets a single event by its ID, with all its data. Use it when you already have the ID (from Get events or Create event) and want its current state: whether it is still confirmed, who accepted, whether its time changed.
How it works
Section titled “How it works”Queries Google by eventId in the calendar calendarId. It only reads: nothing is changed. A cancelled event is returned with status = "cancelled".
Required parameters
Section titled “Required parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
eventId | string | — | Event ID. |
Optional parameters
Section titled “Optional parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
session | ZoanGoogleCalendarSession | — | Session from Google Calendar — Connect. Inside Connect’s body it is inherited and you can leave it empty. |
calendarId | string | primary | Calendar ID (from Get calendars). primary is the account’s main calendar. |
Output
Section titled “Output”Returns a Dictionary with the event data: ev["summary"], ev["start"], ev["end"], ev["status"], ev["location"], ev["attendees"] (guests with their response)…
Common errors
Section titled “Common errors”| Message | Cause and fix |
|---|---|
'eventId' is required. | eventId is empty or its expression returned null. |
No Google Calendar session available. Provide 'session' from a googlecalendar-connect activity, or place this activity inside the Connect activity's body … | The activity is outside Connect’s body and received no session. Move it inside the body or pass the saved session. |
The service calendar has thrown an exception. HttpStatusCode is NotFound… | The event does not exist in that calendar: check calendarId. |
The service calendar has thrown an exception. HttpStatusCode is … | Google rejected the call: unknown calendar or event, no access, expired token or quota exceeded. See Google API errors. |
Example
Section titled “Example”Log each guest’s response:
Google Calendar — Connect credential = credential("calendar-team") └─ body: Google Calendar — Get event by ID eventId = meetingId → output: ev If condition = !isNull(ev["attendees"]) └─ then: For Each items = ev["attendees"] itemVariable = guest └─ activities: Log message = guest["email"] + ": " + guest["response"]Related activities
Section titled “Related activities”- Google Calendar — Get events — search events and their IDs.
- Google Calendar — Update event — change the event.
- Google Calendar — Respond (RSVP) — respond to the invitation.
- All Google Calendar activities