You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param options - An object literal that contains the `asyncContext` property. Assign any object you wish to access in the callback function to the `asyncContext` property.
16039
16035
* @param callback - Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, `asyncResult`,
* @param callback - Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, `asyncResult`,
* @param options - An object literal that contains the `asyncContext` property. Assign any object you wish to access in the callback function to the `asyncContext` property.
16950
16940
* @param callback - Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, `asyncResult`,
* @param callback - Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, `asyncResult`,
* - If you format the dialog message using the `errorMessageMarkdown` property, we recommend you also add a plaintext version of the message using the `errorMessage` property.
23678
23660
* This ensures that the message is displayed properly in Outlook clients that don't support Markdown.
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
23773
23753
*
23774
23754
* **Important**:
23775
23755
*
23776
-
* - The `commandId` option is currently in preview in Outlook on the web and on Windows (new and classic). To preview this feature in classic Outlook on Windows,
23777
-
* install Version 2411 (Build 18227.20034) or later. Then, join the
23778
-
* {@link https://techcommunity.microsoft.com/blog/microsoft365insiderblog/join-the-microsoft-365-insider-program-on-windows/4206638 | Microsoft 365 Insider program}
23779
-
* and select the **Beta Channel** option. To learn how to implement this in your spam-reporting add-in, see
23780
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting#open-a-task-pane-after-reporting-a-message-preview | Open a task pane after reporting a message (preview)}.
23756
+
* - To learn how to implement the `commandId` property in your spam-reporting add-in, see
23757
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting#open-a-task-pane-after-reporting-a-message | Open a task pane after reporting a message}.
23781
23758
*
23782
23759
* - The `commandId` value must match the task pane ID specified in the manifest of your add-in. In an add-in only manifest,
23783
23760
* the ID is specified in the `id` attribute of the {@link https://learn.microsoft.com/javascript/api/manifest/control | Control} element that represents the task pane.
* - If you configure the `commandId` option in the `event.completed` call, a post-processing dialog isn't shown to the user
23787
23764
* even if the `showPostProcessingDialog` option is specified in the call.
23788
23765
*
23789
-
* - If you implement a task pane to open after a reported message is processed, when the `event.completed` call occurs, any task pane that's open or pinned is closed.
23766
+
* - To ensure that the task pane of your spam-reporting add-in opens after a message is reported, you must set the `moveItemTo` option of the `event.completed` call to
23767
+
* `Office.MailboxEnums.MoveSpamItemTo.NoMove`.
23790
23768
*
23791
-
* @beta
23769
+
* - If you implement a task pane to open after a reported message is processed, when the `event.completed` call occurs, any task pane that's open or pinned is closed.
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
23805
23783
*
23806
23784
* **Important**:
23807
23785
*
23808
-
* - The `contextData` option is currently in preview in Outlook on the web and on Windows (new and classic). To preview this feature in classic Outlook on Windows,
23809
-
* install Version 2411 (Build 18227.20034) or later. Then, join the
23810
-
* {@link https://techcommunity.microsoft.com/blog/microsoft365insiderblog/join-the-microsoft-365-insider-program-on-windows/4206638 | Microsoft 365 Insider program}
23811
-
* and select the **Beta Channel** option. To learn how to implement this in your spam-reporting add-in, see
23812
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting#open-a-task-pane-after-reporting-a-message-preview | Open a task pane after reporting a message (preview)}.
23786
+
* - To learn how to implement the `contextData` property in your spam-reporting add-in, see
23787
+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting#open-a-task-pane-after-reporting-a-message | Open a task pane after reporting a message}.
23813
23788
*
23814
23789
* - If you specify the `contextData` option in your `event.completed` call, you must also assign a task pane ID to the `commandId` option.
23815
23790
* Otherwise, the JSON data assigned to `contextData` is ignored.
23816
23791
*
23817
23792
* - If you configure the `commandId` and `contextData` options in the `event.completed` call, a post-processing dialog isn't shown to the user
23818
23793
* even if the `showPostProcessingDialog` option is specified in the call.
23819
23794
*
23795
+
* - To ensure that the task pane of your spam-reporting add-in opens and receives context data after a message is reported, you must set the `moveItemTo` option of the `event.completed` call to
23796
+
* `Office.MailboxEnums.MoveSpamItemTo.NoMove`.
23797
+
*
23820
23798
* - If you implement a task pane to open after a reported message is processed, when the `event.completed` call occurs, any task pane that's open or pinned is closed.
23821
23799
*
23822
23800
* - To retrieve the value of the `contextData` property, you must call `Office.context.mailbox.item.getInitializationContextAsync` in the JavaScript implementation
23823
23801
* of your task pane. If you create a JSON string using `JSON.stringify()` and assign it to the `contextData` property, you must parse the string using
0 commit comments