Skip to content

Commit d1544d2

Browse files
[Outlook] (item multi-select) Update walkthrough (#5092)
* Update walkthrough * Add requirement set check
1 parent fd357f3 commit d1544d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/outlook/item-multi-select.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Activate your Outlook add-in on multiple messages
33
description: Learn how to activate your Outlook add-in when multiple messages are selected.
4-
ms.date: 03/11/2025
4+
ms.date: 03/19/2025
55
ms.topic: how-to
66
ms.localizationpriority: medium
77
---
@@ -257,7 +257,7 @@ The following example implements the `getSelectedItemsAsync` and `loadItemByIdAs
257257
// Clear the list of previously selected messages, if any.
258258
clearList(list);
259259

260-
// Get the subject line and sender's email address of each selected message and log it to a list in the task pane.
260+
// Get the subject line and sender's email address of each selected message and log them to a list in the task pane.
261261
Office.context.mailbox.getSelectedItemsAsync((asyncResult) => {
262262
if (asyncResult.status === Office.AsyncResultStatus.Failed) {
263263
console.log(asyncResult.error.message);
@@ -273,7 +273,7 @@ The following example implements the `getSelectedItemsAsync` and `loadItemByIdAs
273273
async function getItemInfo(selectedItems) {
274274
for (const item of selectedItems) {
275275
addToList(item.subject);
276-
if (Office.context.diagnostics.platform === Office.PlatformType.PC) {
276+
if (Office.context.requirements.isSetSupported("Mailbox", "1.15")) {
277277
await getSenderEmailAddress(item);
278278
}
279279
}

0 commit comments

Comments
 (0)