Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Outlook] (Smart Alerts) Document dialog improvements and new API #2153

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Office.context.mailbox.item - preview requirement set
description: Outlook Mailbox API preview requirement set version of the Item object model.
ms.date: 11/19/2024
ms.date: 12/12/2024
ms.localizationpriority: medium
---

Expand Down Expand Up @@ -184,6 +184,8 @@ ms.localizationpriority: medium
| | | [Message Read](/javascript/api/outlook/office.messageread?view=outlook-js-preview&preserve-view=true#outlook-office-messageread-removehandlerasync-member(1)) | [1.7](../requirement-set-1.7/outlook-requirement-set-1.7.md) |
| saveAsync([options], callback) | **read/write item** | [Appointment Organizer](/javascript/api/outlook/office.appointmentcompose?view=outlook-js-preview&preserve-view=true#outlook-office-appointmentcompose-saveasync-member(1)) | [1.3](../requirement-set-1.3/outlook-requirement-set-1.3.md) |
| | | [Message Compose](/javascript/api/outlook/office.messagecompose?view=outlook-js-preview&preserve-view=true#outlook-office-messagecompose-saveasync-member(1)) | [1.3](../requirement-set-1.3/outlook-requirement-set-1.3.md) |
| sendAsync([options], [callback]) | **read/write mailbox** | [Appointment Organizer](/javascript/api/outlook/office.appointmentcompose?view=outlook-js-preview&preserve-view=true#outlook-office-appointmentcompose-sendasync-member(1)) | [Preview](../requirement-set-1.3/outlook-requirement-set-1.3.md) |
| | | [Message Compose](/javascript/api/outlook/office.messagecompose?view=outlook-js-preview&preserve-view=true#outlook-office-messagecompose-sendasync-member(1)) | [Preview](../requirement-set-1.14/outlook-requirement-set-1.14.md) |
| setSelectedDataAsync(data, [options], callback) | **read/write item** | [Appointment Organizer](/javascript/api/outlook/office.appointmentcompose?view=outlook-js-preview&preserve-view=true#outlook-office-appointmentcompose-setselecteddataasync-member(1)) | [1.2](../requirement-set-1.2/outlook-requirement-set-1.2.md) |
| | | [Message Compose](/javascript/api/outlook/office.messagecompose?view=outlook-js-preview&preserve-view=true#outlook-office-messagecompose-setselecteddataasync-member(1)) | [1.2](../requirement-set-1.2/outlook-requirement-set-1.2.md) |

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Outlook add-in API preview requirement set
description: Features and APIs that are currently in preview for Outlook add-ins.
ms.date: 11/14/2024
ms.date: 12/12/2024
ms.topic: whats-new
ms.localizationpriority: medium
---
Expand Down Expand Up @@ -101,7 +101,27 @@ Added a new object that represents the properties and methods of a selected mess

---

### Smart Alerts: Format the dialog message using Markdown
### Programmatically send a message or appointment

#### [Office.context.mailbox.item.sendAsync](office.context.mailbox.item.md#methods)

Added a new method to programmatically send a message or appointment. For a sample implementation of the `sendAsync` method, see the [Smart Alerts walkthrough](/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough#programmatically-send-the-item-from-the-task-pane-optional-preview).

**Available in**: Classic Outlook on Windows (Microsoft 365 subscription)

<br>

---

---

### Smart Alerts improvements

#### [Implement the Take Action button in the dialog](/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough#customize-the-text-and-functionality-of-a-button-in-the-dialog-optional)

Updated the implementation of the `cancelLabel` and `commandId` options of the `event.completed` method. The updated implementation adds a **Take Action** button to the Smart Alerts dialog.

**Available in**: Classic Outlook on Windows (Microsoft 365 subscription)

#### [Office.SmartAlertsEventCompletedOptions.errorMessageMarkdown](/javascript/api/outlook/office.smartalertseventcompletedoptions?view=outlook-js-preview&preserve-view=true#outlook-office-smartalertseventcompletedoptions-errormessagemarkdown-member)

Expand Down