Google Calendar — Add attendee
Google Calendar — Add attendee
Section titled “Google Calendar — Add attendee”Type: googlecalendar-add-attendee · Package: Google Calendar v1.0.5 · Output: Dictionary<string,object>
Adds one or more guests to an existing event without removing the ones it already had. It is the safe way to add attendees without rewriting the whole list.
How it works
Section titled “How it works”Reads the event, adds the emails in attendees to its list and saves the change:
- Existing guests keep their response.
- An email already on the list (case-insensitive) is skipped, so repeating the activity does not duplicate guests.
attendeesaccepts a text with emails separated by,or;, or a list of emails.- With
notify = true(default) Google sends the event emails to the guests; new ones get the invitation. - The account must be able to edit the event (usually, be its organizer).
Required parameters
Section titled “Required parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
eventId | string | — | Event ID. |
attendees | string | List | — | Email(s) to add, separated by , or ;, or as a list. |
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. |
notify | bool | true | Send Google’s emails to the guests. |
Output
Section titled “Output”Returns a Dictionary with the updated event data, with the full attendees list (old and new, each with email, response and optional).
Common errors
Section titled “Common errors”| Message | Cause and fix |
|---|---|
'eventId' is required. | eventId is empty or its expression returned null. |
'attendees' is required. | attendees is empty or holds no email. |
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 Forbidden… | The account cannot edit the event (it is not the organizer). |
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”Google Calendar — Connect credential = credential("calendar-team") └─ body: Google Calendar — Add attendee eventId = meetingId attendees = "new@mail.com; support@company.com" → output: ev Log message = "Guests: " + ((List<object>)ev["attendees"]).CountRelated activities
Section titled “Related activities”- Google Calendar — Create event — create the event with its guests.
- Google Calendar — Respond (RSVP) — respond to an invitation.
- Google Calendar — Update event — change other fields.
- All Google Calendar activities