Skip to main content

Hello! Is there a nice and clean way to do this that anyone has found? 

Basically I want to remove a single user from a Group Calendar Invite, but I can’t find a way of doing this without clearing the calendar invite attendees and then re-adding everyone but the person I want to remove… Which has the unintended consequence of

  1. Notifying everyone when the event is cleared
  2. Re-notifying them when I add everyone back in

...Another way to put this question could also be “How can I update a calendar invite without notifying everyone?”

Hi @andywingrave

Have you tried using the GCal Update Event and simply replacing the Attendees minus the 1 you want to remove?

Wondering how GCal behaves if it sees the same Attendees -1.

Maybe this won’t retrigger the notifications for the Attendees.

 


Hey @Troy Tessalone - How can I do that though, because this field seems to expect individual users

I guess I could just set the limit on users to something managable in a JS script and output them as individual variables… 


Which is what I did - And it looks as ugly as anything I’ve ever seen, but it’s functional… So there’s that.

 

var attendees = (await inputData.attendees).split(',')
var remove = inputData.email


var newAttendees = attendees.filter(x => x != remove)

var attendee0, attendee1, attendee2, attendee3, attendee4, attendee5, attendee6, attendee7, attendee8, attendee9, attendee10, attendee11, attendee12, attendee13, attendee14, attendee15, attendee16, attendee17, attendee18, attendee19, attendee20, attendee21, attendee22, attendee23, attendee24, attendee25, attendee26, attendee27, attendee28, attendee29, attendee30, attendee31, attendee32, attendee33, attendee34, attendee35, attendee36, attendee37, attendee38, attendee39, attendee40, attendee41, attendee42, attendee43, attendee44, attendee45, attendee46, attendee47, attendee48, attendee49, attendee50;

attendee0 = newAttendeesw0]
attendee1 = newAttendeesw1]
attendee2 = newAttendeesw2]
attendee3 = newAttendeesw3]
attendee4 = newAttendeesw4]
attendee5 = newAttendeesw5]
attendee6 = newAttendeesw6]
attendee7 = newAttendeesw7]
attendee8 = newAttendeesw8]
attendee9 = newAttendeesw9]
attendee10 = newAttendeesw10]
attendee11 = newAttendeesw11]
attendee12 = newAttendeesw12]
attendee13 = newAttendeesw13]
attendee14 = newAttendeesw14]
attendee15 = newAttendeesw15]
attendee16 = newAttendeesw16]
attendee17 = newAttendeesw17]
attendee18 = newAttendeesw18]
attendee19 = newAttendeesw19]
attendee20 = newAttendeesw20]
attendee21 = newAttendeesw21]
attendee22 = newAttendeesw22]
attendee23 = newAttendeesw23]
attendee24 = newAttendeesw24]
attendee25 = newAttendeesw25]
attendee26 = newAttendeesw26]
attendee27 = newAttendeesw27]
attendee28 = newAttendeesw28]
attendee29 = newAttendeesw29]
attendee30 = newAttendeesw30]
attendee31 = newAttendeesw31]
attendee32 = newAttendeesw32]
attendee33 = newAttendeesw33]
attendee34 = newAttendeesw34]
attendee35 = newAttendeesw35]
attendee36 = newAttendeesw36]
attendee37 = newAttendeesw37]
attendee38 = newAttendeesw38]
attendee39 = newAttendeesw39]
attendee40 = newAttendeesw40]
attendee41 = newAttendeesw41]
attendee42 = newAttendeesw42]
attendee43 = newAttendeesw43]
attendee44 = newAttendeesw44]
attendee45 = newAttendeesw45]
attendee46 = newAttendeesw46]
attendee47 = newAttendeesw47]
attendee48 = newAttendeesw48]
attendee49 = newAttendeesw49]
attendee50 = newAttendeesw50]

output = >{newAttendees, attendee0, attendee1, attendee2, attendee3, attendee4, attendee5, attendee6, attendee7, attendee8, attendee9, attendee10, attendee11, attendee12, attendee13, attendee14, attendee15, attendee16, attendee17, attendee18, attendee19, attendee20, attendee21, attendee22, attendee23, attendee24, attendee25, attendee26, attendee27, attendee28, attendee29, attendee30, attendee31, attendee32, attendee33, attendee34, attendee35, attendee36, attendee37, attendee38, attendee39, attendee40, attendee41, attendee42, attendee43, attendee44, attendee45, attendee46, attendee47, attendee48, attendee49, attendee50}];

 

 


@andywingrave You should be able to simplify that code.

Try this...

 

Code:

var Emails = inputData.Emails.split(',');
var Exclude = inputData.Exclude;

Emails = Emails.filter(i => !i.includes(Exclude));

output = {Exclude, Emails}];

 


Yeah - Good shout - Didn’t think of that. D’oh! Thanks Troy

 

Although - aside from the prettier code, I’m still capped by the number of records I want to copy and paste into the next step… So I will keep my ugly code as it is for now. But appreciate your guidance here.