From 7a292624efd45e5de9048041b5fa758a53daeb85 Mon Sep 17 00:00:00 2001 From: Sam Ramon <15154970+samantharamon@users.noreply.github.com> Date: Mon, 27 Oct 2025 17:22:28 -0700 Subject: [PATCH] Clarify which object contains the data being dropped into task pane --- docs/outlook/drag-drop-items.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/outlook/drag-drop-items.md b/docs/outlook/drag-drop-items.md index 8f419f5d6..823954e32 100644 --- a/docs/outlook/drag-drop-items.md +++ b/docs/outlook/drag-drop-items.md @@ -1,7 +1,7 @@ --- title: Drag and drop messages and attachments into the task pane description: Learn how to enable drag and drop of messages and file attachments into the task pane of your Outlook add-in. -ms.date: 10/16/2025 +ms.date: 10/28/2025 ms.topic: how-to ms.localizationpriority: medium --- @@ -38,7 +38,7 @@ The drag or drop event occurs when the mouse pointer enters an add-in's task pan # [Web and Windows (new)](#tab/web) -In Outlook on the web and the new Outlook on Windows, create a handler in your JavaScript file for the [Office.EventType.DragAndDropEvent](/javascript/api/office/office.eventtype) event using the [Office.context.mailbox.addHandlerAsync](/javascript/api/outlook/office.mailbox#outlook-office-mailbox-addhandlerasync-member(1)) method. When the `DragAndDropEvent` event occurs, the handler receives a [DragAndDropEventArgs](/javascript/api/outlook/office.draganddropeventargs) object so that you can identify when a user drags an item over the task pane, when they drop the item into the task pane, and what data is associated with the item. Depending on whether a drag or drop event occurred, the [dragAndDropEventData](/javascript/api/outlook/office.draganddropeventargs#outlook-office-draganddropeventargs-draganddropeventdata-member) property of the `DragAndDropEventArgs` object returns a [DragoverEventData](/javascript/api/outlook/office.dragovereventdata) or [DropEventData](/javascript/api/outlook/office.dropeventdata) object. These objects provide information on the position of the mouse pointer and the data being transferred to the task pane. +In Outlook on the web and the new Outlook on Windows, create a handler in your JavaScript file for the [Office.EventType.DragAndDropEvent](/javascript/api/office/office.eventtype) event using the [Office.context.mailbox.addHandlerAsync](/javascript/api/outlook/office.mailbox#outlook-office-mailbox-addhandlerasync-member(1)) method. When the `DragAndDropEvent` event occurs, the handler receives a [DragAndDropEventArgs](/javascript/api/outlook/office.draganddropeventargs) object so that you can identify when a user drags an item over the task pane, when they drop the item into the task pane, and what data is associated with the item. Depending on whether a drag or drop event occurred, the [dragAndDropEventData](/javascript/api/outlook/office.draganddropeventargs#outlook-office-draganddropeventargs-draganddropeventdata-member) property of the `DragAndDropEventArgs` object returns a [DragoverEventData](/javascript/api/outlook/office.dragovereventdata) or [DropEventData](/javascript/api/outlook/office.dropeventdata) object. Both these objects provide information on the position of the mouse pointer. Note that only the `DropEventData` object contains the data being transferred to the task pane. When messages are dragged to the task pane, they're dropped as .eml files. Attachments that are dropped retain their current format. For a list of supported types, see [Supported item types](#supported-item-types).