Is it possible to retrieve the status of attendees in Outlook Web Add-In for an appointment/meeting? Here is a snippet similar to the code I'm working with.
let item = Office.context.mailbox.item,
requiredAttendees, optionalAttendees, totalAttendees = 0;
if (item.itemType === Office.MailboxEnums.ItemType.Appointment) {
requiredAttendees = item.requiredAttendees;
optionalAttendees = item.optionalAttendees;
if (requiredAttendees) {
requiredAttendees.getAsync((asyncResult) => {
console.log(asyncResult.value);
if (asyncResult.status === Office.AsyncResultStatus.Succeeded) {
totalAttendees += asyncResult.value.length;
for (let i = 0; i < asyncResult.value.length; i++) {
console.log(asyncResult.value[i].displayName + ' | ' +
asyncResult.value[i].appointmentResponse + ' | ' +
asyncResult.value[i].recipientType + ' | ' +
asyncResult.value[i].emailAddress);
}
}
});
}
}
appointmentResponse is undefined.
I'm looking for something to indicate:
- No Response
- Accepted
- Declined
Aucun commentaire:
Enregistrer un commentaire