Outlook add in (calendar event): Recurrence is always null

后端 未结 3 358
粉色の甜心
粉色の甜心 2021-01-17 00:25

I have an Outlook addin for calendar events, with a task pane. From the pane, I get the event data:

   date start: item.start.getAsync()
   date end: item.end         


        
3条回答
  •  隐瞒了意图╮
    2021-01-17 00:57

    With the code you gave me in the comment, i get the recurrence when it changes:

      Office.context.mailbox.item.addHandlerAsync(Office.EventType.RecurrenceChanged, handler, callback);
    

    But only 'handler' function is called, where the recurrence is valid: console.log(JSON.stringify(eventarg.recurrence));

    • Why callback function is not called?
    • Why I can not get the recurrence with my function:

    Office.context.mailbox.item.addHandlerAsync(Office.EventType.RecurrenceChanged, handleRecurrenceChange);

    In this case, handleRecurrenceChange is called but when I call item.recurrence.getAsync() i get result.value = null

    The same if I call item.recurrence.getAsync() when I need the recurrence (I get null)

    I would like to get the recurrence when I need it (I can get all other event values properly), without saving it when changed, if possible...

    Regards,

    Diego

提交回复
热议问题