API бронирования в Microsoft Graph - OptOutOfCustomerEmail = true приводит к тому, что электронное письмо с подтверждением все равно отправляется
Если я создаю встречу Bookings через Microsoft Graph API с помощью .NET SDK (C#) и устанавливаю
var appointmentToBook = new BookingAppointment
{
CustomerId = bookingsCustomerId,
Start = DateTimeTimeZone.FromDateTimeOffset(request.Start, request.TimeZone),
End = DateTimeTimeZone.FromDateTimeOffset(request.End, request.TimeZone),
ServiceId = request.ServiceId,
StaffMemberIds = new[] { request.StaffId },
CustomerPhone = request.CustomerPhone,
CustomerEmailAddress = request.CustomerEmail,
CustomerName = $"{request.FirstName} {request.LastName}",
OptOutOfCustomerEmail = true
};
var newAppointment = await _graphServiceClient.BookingBusinesses[_appSettings.BookingsBusinessId]
.Appointments
.Request()
.AddAsync(appointmentToBook);