Outlook 插件 displayNewAppointmentForm 函数在 AppointmentOrganizerCommandSurface 扩展点中不起作用

Outlook Addin displayNewAppointmentForm function not works in AppointmentOrganizerCommandSurface Extension Point

我正在使用 ExecuteFunction 创建一个带有参数的新约会表单。它正在

AppointmentAttendeeCommandSurface

扩展点但不适用于

AppointmentOrganizerCommandSurface

扩展点。

我在 this site 上找不到它。可以吗displayNewAppointmentForm 在两个扩展点上?

function openAppFrm(event) 
{
    var start = new Date();
    var end = new Date();
    end.setHours(start.getHours() + 1);

    Office.context.mailbox.displayNewAppointmentForm(
        {
            requiredAttendees: ['kamal@abc.com', 'nimal@abc.com'],
            optionalAttendees: ['kasun@abc.com'],
            start: start,
            end: end,
            location: 'Colombo Office',
            subject: 'Test Meeting',
            body: 'Hello World!'
        });
    event.completed();
}

Office.context.mailbox.displayNewAppointmentForm 仅在 AppointmentAttendeeCommandSurface 中受支持。它在 AppointmentOrganizerCommandSurface 中不受支持。