I was digging into the notify_participants flag in the Events API, because I have an app that has already been set up to support Google Calendar, and I was working to also support Outlook Calendar… but I think I don’t understand it. First I found this bit of documentation
Events API documentation: Nylas Email, Calendar, and Contacts API docs | Docs
notify_participants - boolean - default: true
Filter for events matching the specified
notify_participantssetting.Microsoft and iCloud do not support
notify_participants=false.
So first of all, this is the page about creating an event, so I’m confused why it’s talking about filtering. I understand that Microsoft does not support false, and the Nylas API told me so early on, so I set it to true for Outlook events in particular early on – and then while testing around later on, I learned that this enabled sending calendar invites (via ICS attachments) to Google calendar users.
The issue I’m running into is understanding the behavior behind notify_participants=true because I’m trying not to send unnecessary emails and spam my guests if a calendar’s events needs updating. And I also want to make sure to support cross-calendar invites (i.e. create either a Microsoft Outlook calendar or a Google calendar, create events, and invite a mixture of Google calendar and Microsoft Outlook emails).
So then I tried to find where the notify_participants field is described more completely/thoroughly and found this.
Notify Participants documentation: Using the Events API | Docs
The query string parameter
notify_participants=truesends an email invitation to all email addresses listed in theparticipantssub-object. The query string parameter defaults totrue.
Keep in mind: When
notify_participants=false, your request doesn’t create an event for the participant. Participants don’t receive a message or an ICS file.
Is notify_participants smart enough to perform the equivalent to notify_participants=false to guests with with Google emails when sending them a Google calendar event? From testing around, I think it does, but the documentation doesn’t seem to point to that behavior.
- If it does the smart thing and invites users to the calendar if their provider matches and sends emails if their provider doesn’t, I’d like to ask that the documentation be updated to represent that.
- If it does not do the smart thing (which I think is the case here), how might you suggest updating a Google-hosted calendar to Google participants using
notify_participants=false, and all others withnotify_participants=trueto prevent email spam.- My worry here is that the Nylas API won’t support making 2 API calls to update the event for a split set of users so that some can have
notify_participants=falseand others withnotify_participants=true
- My worry here is that the Nylas API won’t support making 2 API calls to update the event for a split set of users so that some can have