I'm having an issue creating Calendar Events via script - I'm using STANDARD mode. (Dynamic was not working)
The Events create just fine, but the record is automatically adding the customer set in the 'company' field of the event as an attendee.
We want these events to be internal only, and not send an invite to the customer.
I've tried removing all the attendee sublist lines before adding the employees as attendees, but it still appeared.
I also tried looping thru the attendee lines after setting the sublist lines to look for attendees that are not employees to remove them, but that didn't work either.
Logging the number of attendee lines -- before adding the employees: 1 (the customer); after: 3 (the employees), but the customer still shows in the list after creation.
How to remove the customer from the attendee list before saving? (I don't want to do it AFTER saving because I think NetSuite will have already sent the invite...)