f.Outlook()

f.Outlook()

개요

Outlook 캘린더 앱을 연동할 수 있습니다.

기능 요소

요소명
설명

캘린더 일정 목록을 가져옵니다.

새로운 일정을 생성합니다.

생성한 일정을 취소합니다.

초대받은 일정을 수락합니다.

초대받은 일정을 거절합니다.

사용 예시

let outlook = f.Outlook();
let subject = "회의";
let startDateTime = f.Date("2026.01.01 09:00").date;
let endDateTime = f.Date("2026.01.01 10:00").date;
let location = "19층 회의실"; // or null
let comment_cancel = "일정이 변경되었습니다."; // or null
let comment_accept = "일정을 수락했습니다."; // or null
let comment_decline = "이미 일정이 있습니다."; // or null
let isSendResponse = true;

let attendees = [{
        emailAddress: { address: "[email protected]", name: "플렉스튜디오" },
        type: "required"
    }];

// 일정 조회
outlook.getEvents(startDate, endDate, function(isSuccess, result) {
    if (isSuccess) {
        console.log(result);
    }
})
// 일정 생성
outlook.createEvent(subject, startDateTime, endDateTime, location, attendees, function(isSuccess, result) {
    if (isSuccess) {
        console.log(result);
    }
})
// 일정 취소
outlook.cancelEvent(id, comment_cancel, function(isSuccess) {
    if(status) {
        f.MessageBox('Completed').setTitle('처리 완료').setDescription('취소가 완료되었습니다.').addBtn('완료',null).show();
    }
});
// 일정 수락
outlook.acceptEvent(id, comment_accept, isSendResponse, function(isSuccess) {
    if(status) {
        f.MessageBox('Completed').setTitle('처리 완료').setDescription('일정을 수락하였습니다.').addBtn('완료',null).show();
    }
});
// 일정 거절
outlook.declineEvent(id, comment_decline, function(isSuccess) {
    if(status) {    
        f.MessageBox('Completed').setTitle('처리 완료').setDescription('일정을 거절하였습니다.').addBtn('완료',null).show();
    }
});

마지막 업데이트

도움이 되었나요?