Outlook Addin displayNewAppointmentForm函数在AppointmentOrganizerCommandSurface扩展点

时间:2017-07-18 10:05:02

标签: outlook-addin office-js

我正在使用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();
}

1 个答案:

答案 0 :(得分:0)

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