Google Calendar — Respond (RSVP)
Google Calendar — Respond (RSVP)
Section titled “Google Calendar — Respond (RSVP)”Type: googlecalendar-respond · Package: Google Calendar v1.0.5 · Output: Dictionary<string,object>
Responds to an event invitation on behalf of a guest: accept, decline or mark as tentative. Useful so a team mailbox or agenda confirms meetings that match a rule automatically.
How it works
Section titled “How it works”Reads the event, finds the responding email among its guests (case-insensitive), changes its response and saves the event. The other guests stay as they were.
By default it responds as the session account: the email Connect read from its main calendar (with impersonateUser, the impersonated user’s). Use email to respond as another guest, or if Connect could not read the account.
Required parameters
Section titled “Required parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
eventId | string | — | Event ID. |
response | string | — | Response: accepted, declined or tentative. |
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. |
email | string | — | Guest to respond as. If empty, the session account. |
Output
Section titled “Output”Returns a Dictionary with the updated event data; the new response shows in that guest’s response inside attendees.
Common errors
Section titled “Common errors”| Message | Cause and fix |
|---|---|
'eventId' is required. | eventId is empty or its expression returned null. |
This event has no attendees to respond as. | The event has no guests (for example, your own event with no invitations). |
The responding account is not an attendee of this event. | The email (or the session account) is not among the guests. Check email or calendarId. |
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 … | Google rejected the call: unknown calendar or event, no access, expired token or quota exceeded. See Google API errors. |
Example
Section titled “Example”Accept this week’s invitations whose title contains “Committee”:
Google Calendar — Connect credential = credential("calendar-team") └─ body: Google Calendar — Get events query = "Committee" timeMax = DateTime.Today.AddDays(7).ToString("yyyy-MM-ddTHH:mm:ss") → output: events For Each items = events itemVariable = ev └─ activities: Google Calendar — Respond (RSVP) eventId = ev["id"] response = acceptedRelated activities
Section titled “Related activities”- Google Calendar — Get events — find the event to respond to.
- Google Calendar — Add attendee — add guests.
- Google Calendar — Get event by ID — see the guests’ status.
- All Google Calendar activities