Office.MailboxEnums.ItemType enum
Указывает тип элемента.
Комментарии
Применимый режим Outlook: Compose или чтение
Примеры
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/90-other-item-apis/get-item-type.yaml
const itemType = Office.context.mailbox.item.itemType;
switch (itemType) {
case Office.MailboxEnums.ItemType.Appointment:
console.log(`Current item is an ${itemType}.`);
break;
case Office.MailboxEnums.ItemType.Message:
console.log(`Current item is a ${itemType}. A message could be an email, meeting request, meeting response, or meeting cancellation.`);
break;
}
Поля
| Message = "message" | Электронное сообщение, приглашение на собрание, ответ на такое приглашение или уведомление об отмене собрания. |
| Appointment = "appointment" | Элемент встречи. |