--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/069d7a70-2f28-4e3b-acf6-9304c18df4dfn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/3509910a-78d2-43a7-afaf-54076889f96en%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/da89167d-3b64-4c58-a58e-dd04a6d7e7b1n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAKTLZ506XJs7o2hmOW-a6BATFPDJo%2BVmvarNWNvUQwOwrD5sEA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAHQVb%2BT3bYy2ozvcL22FrUv%2B%3D0Gc%3DBuFrmw7rhwiEkxEvPbfcw%40mail.gmail.com.
Notifications of Calendar events is a weak area. Even under manual changes, if you select send updates or not, it still sends updates to all.
Under programmatical deletion of an event, there are no notifications sent to the invited guests. I had opened a ticket on that which was accepted by Google but no fix yet. Feel free to star it:
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAKTLZ51cf0Pg8XHVbdxEC3F3vjEgD8bAqh%3DxYE_yEt%2Bj0%2BFHMQ%40mail.gmail.com.
sendUpdates : "all" which is exactly what I'm trying to set with patch or update before doing addGuest() |
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/00da01d6d288%245b9c3f40%2412d4bdc0%24%40gmail.com.
Thanks for posting. I will try to do the same before deleting the event and see if it is sending notifications now or not.
From: google-apps-sc...@googlegroups.com <google-apps-sc...@googlegroups.com> On Behalf Of Jean-Luc Vanhulst
Sent: December 14, 2020 6:43 PM
To: google-apps-sc...@googlegroups.com
Subject: Re: [Apps-Script] Re: Anyone successfully used Calendar.Events.patch() ?
Ok - I found my solution!
Not all event objects are created equally, apparently!
I had this:
var eventObject = CalendarApp.getCalendarById(calId).getEventById(eId);
// (Which returns a working event object that I can do something like addGuest() with successfully )
Calendar.Events.patch(eventObject,calId, eId,{ sendUpdates: "all" });
but only when I do
var eventObject = Calendar.Events.get(calId, eId);
Calendar.Events.patch(eventObject,calId, eId,{ sendUpdates: "all" });
The call to update or patch works!
ᐧ
On Mon, Dec 14, 2020 at 9:27 PM Jean-Luc Vanhulst <jlvan...@write2market.com> wrote:
So when running the 'Try me option' all goes well:
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAKTLZ50Dk8FmM6cGeuP5H-HryaO6ujK7S3191VSBX_06EJTvaA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/001601d6d28d%241c41bbe0%2454c533a0%24%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/5fd8d59d.1c69fb81.f9e69.1840%40mx.google.com.
In the calendarApp, there is no equivalent of update either. Also all attendees are referred to as guests, there is no distinction between the two.
I have tried to remove all guests from event before finally just deleting the whole event (you would think that if you are removed from an event, you would get an event cancellation notice), but no notification is sent out in that case either way.
I am surprised this passed testing the first time before making it available to the general population as obviously notifications are not working correctly (on delete). For invites, they do work fine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAKTLZ50o1UPnTgN0KhA8juEkwpJScHgCrWTCd1H4ct3Ldwx6HQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/000001d6d325%245d4a00f0%2417de02d0%24%40gmail.com.