Skip to content

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.

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.

ParameterTypeDefaultDescription
eventIdstring—Event ID.
responsestring—Response: accepted, declined or tentative.
ParameterTypeDefaultDescription
sessionZoanGoogleCalendarSession—Session from Google Calendar — Connect. Inside Connect’s body it is inherited and you can leave it empty.
calendarIdstringprimaryCalendar ID (from Get calendars). primary is the account’s main calendar.
emailstring—Guest to respond as. If empty, the session account.

Returns a Dictionary with the updated event data; the new response shows in that guest’s response inside attendees.

MessageCause 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.

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 = accepted