问题描述
我有一个用于日历事件的Outlook外接程序(Office 365 Web),它具有一个任务窗格,可为用户显示信息。
我在编辑重复事件“此事件及其后发生的事件”时遇到问题。
这些是我的步骤:
我在第1天打开一个活动,并将“每日”重复设置为3天[day_1,day_2,day_3]。
然后我打开任务窗格,然后可以从Office.context.mailBox.item中读取ID:
item1_id
和重复信息:
{"recurrenceProperties":{"interval":1},"recurrenceType":"daily","recurrenceTimeZone":{...},"seriesTime":
{"startYear":2020,"startMonth":10,"startDay":27,"endYear":2020,"endMonth":10,"endDay":29,"startTimeMinutes":600,"durationMinutes":30}
}
然后将活动保存在日历中。
A)如果我打开“所有系列”进行编辑,我将从Office.context.mailBox.item中阅读:
-
seriesId:空
-
itemId:seriesId( = item1_id ,创建系列时保存的值-> I 知道这是我的系列)
B)如果我打开一个要编辑的事件,我将阅读:
-
seriesId:seriesId( = item1_id ,创建序列时保存了值->我知道这是我的事件)
-
itemId:itemB
-
seriesId:null(正确吗?)
-
itemId:itemC(我不知道此事件来自我创建的系列...)
我的代码:
Office.onReady(info => {
g_item = Office.context.mailBox.item;
g_itemId = g_item.itemId;
if (g_itemId === null || g_itemId == undefined) {
g_item.saveAsync(function (result) {
g_itemId = result.value;
g_item.recurrence.getAsync((asyncResult) => {
if (asyncResult.status !== Office.AsyncResultStatus.Failed) {
g_recurrence = asyncResult.value;
console.log("Recurrence: " + JSON.stringify(g_recurrence));
console.log("ITEM ID: " + g_itemId);
console.log("SERIES ID: " + g_item.seriesId);
}
});
});
}
else
console.log("**** itemId found: " + g_itemId);
});
希望您能理解我的问题...
谢谢
迭戈
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)