File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
title : Activate your Outlook add-in on multiple messages
3
3
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
5
5
ms.topic : how-to
6
6
ms.localizationpriority : medium
7
7
---
@@ -257,7 +257,7 @@ The following example implements the `getSelectedItemsAsync` and `loadItemByIdAs
257
257
// Clear the list of previously selected messages, if any.
258
258
clearList(list);
259
259
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.
261
261
Office.context.mailbox.getSelectedItemsAsync((asyncResult) => {
262
262
if (asyncResult.status === Office.AsyncResultStatus.Failed) {
263
263
console.log(asyncResult.error.message);
@@ -273,7 +273,7 @@ The following example implements the `getSelectedItemsAsync` and `loadItemByIdAs
273
273
async function getItemInfo(selectedItems) {
274
274
for (const item of selectedItems) {
275
275
addToList(item.subject);
276
- if (Office.context.diagnostics.platform === Office.PlatformType.PC ) {
276
+ if (Office.context.requirements.isSetSupported("Mailbox", "1.15") ) {
277
277
await getSenderEmailAddress(item);
278
278
}
279
279
}
You can’t perform that action at this time.
0 commit comments