Reputation: 626
We've recently enabled AppointmentOrganizerCommandSurface in our Outlook addin and noticed that it is always the Compose mode in which ItemId is not available, even when editing an existing appointment/meeting.
This sort of does not make sense for an existing appointment/meeting. Is there a way to get the ItemId?
Thank you
Upvotes: 1
Views: 307
Reputation:
The itemId
property is not available in compose mode, which includes editing an existing appointment. If an item identifier is required, the saveAsync
method can be used to save the item to the store, which will return the item identifier in the AsyncResult.value
parameter in the callback function. (source)
However, saveAsync
is currently not working as expected in Calendar. When calling Office.context.mailbox.item.saveAsync
on a new Calendar item that has not been sent yet, the API will not save. We are aware of this issue and are looking into a solution to resolve this so that the API can be used as designed.
The API should behave as designed in Mail and on existing Calendar items. Note that for existing Calendar items, calling saveAsync
will send out an update to attendees if the user or the add-in make changes in the compose form.
Upvotes: 1