Skip to content

Commit 00f1c9e

Browse files
[All hosts] Get latest (#2213)
1 parent 8f25be6 commit 00f1c9e

File tree

5 files changed

+274
-0
lines changed

5 files changed

+274
-0
lines changed

docs/docs-ref-autogen/outlook/outlook/office.spamreportingeventcompletedoptions.yml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,119 @@ isPreview: false
6363
isDeprecated: false
6464
type: interface
6565
properties:
66+
- name: commandId
67+
uid: 'outlook!Office.SpamReportingEventCompletedOptions#commandId:member'
68+
package: outlook!
69+
fullName: commandId
70+
summary: >-
71+
When you use the [completed
72+
method](https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1))
73+
to signal that a reported message has finished processing, this property specifies the ID of the task pane that
74+
opens after the message is processed.
75+
remarks: >-
76+
\[ [API set: Mailbox preview](/javascript/api/requirement-sets/outlook/outlook-api-requirement-sets) \]
77+
78+
79+
**[Minimum permission level
80+
(Outlook)](https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions)<!--
81+
-->**: **read item**
82+
83+
84+
**[Applicable Outlook
85+
mode](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points)<!--
86+
-->**: Message Read
87+
88+
89+
**Important**:
90+
91+
92+
- The `commandId` option is currently in preview in Outlook on the web and on Windows (new and classic). To
93+
preview this feature in classic Outlook on Windows, install Version 2411 (Build 18227.20034) or later. Then, join
94+
the [Microsoft 365 Insider
95+
program](https://techcommunity.microsoft.com/blog/microsoft365insiderblog/join-the-microsoft-365-insider-program-on-windows/4206638)
96+
and select the **Beta Channel** option. To learn how to implement this in your spam-reporting add-in, see
97+
[Open a task pane after reporting a message
98+
(preview)](https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting#open-a-task-pane-after-reporting-a-message-preview)<!--
99+
-->.
100+
101+
102+
- The `commandId` value must match the task pane ID specified in the manifest of your add-in. In an add-in only
103+
manifest, the ID is specified in the `id` attribute of the
104+
[Control](https://learn.microsoft.com/javascript/api/manifest/control) element that represents the task pane. The
105+
`commandId` property isn't currently supported in a spam-reporting add-in that uses a unified manifest for
106+
Microsoft 365.
107+
108+
109+
- If you configure the `commandId` option in the `event.completed` call, a post-processing dialog isn't shown to
110+
the user even if the `showPostProcessingDialog` option is specified in the call.
111+
112+
113+
- If you implement a task pane to open after a reported message is processed, when the `event.completed` call
114+
occurs, any task pane that's open or pinned is closed.
115+
isPreview: true
116+
isDeprecated: false
117+
syntax:
118+
content: 'commandId?: string;'
119+
return:
120+
type: string
121+
- name: contextData
122+
uid: 'outlook!Office.SpamReportingEventCompletedOptions#contextData:member'
123+
package: outlook!
124+
fullName: contextData
125+
summary: >-
126+
When you use the [completed
127+
method](https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1))
128+
to signal that a reported message has finished processing, this property specifies any JSON data passed to the
129+
add-in's task pane after the message is processed.
130+
remarks: >-
131+
\[ [API set: Mailbox preview](/javascript/api/requirement-sets/outlook/outlook-api-requirement-sets) \]
132+
133+
134+
**[Minimum permission level
135+
(Outlook)](https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions)<!--
136+
-->**: **read item**
137+
138+
139+
**[Applicable Outlook
140+
mode](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points)<!--
141+
-->**: Message Read
142+
143+
144+
**Important**:
145+
146+
147+
- The `contextData` option is currently in preview in Outlook on the web and on Windows (new and classic). To
148+
preview this feature in classic Outlook on Windows, install Version 2411 (Build 18227.20034) or later. Then, join
149+
the [Microsoft 365 Insider
150+
program](https://techcommunity.microsoft.com/blog/microsoft365insiderblog/join-the-microsoft-365-insider-program-on-windows/4206638)
151+
and select the **Beta Channel** option. To learn how to implement this in your spam-reporting add-in, see
152+
[Open a task pane after reporting a message
153+
(preview)](https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting#open-a-task-pane-after-reporting-a-message-preview)<!--
154+
-->.
155+
156+
157+
- If you specify the `contextData` option in your `event.completed` call, you must also assign a task pane ID to
158+
the `commandId` option. Otherwise, the JSON data assigned to `contextData` is ignored.
159+
160+
161+
- If you configure the `commandId` and `contextData` options in the `event.completed` call, a post-processing
162+
dialog isn't shown to the user even if the `showPostProcessingDialog` option is specified in the call.
163+
164+
165+
- If you implement a task pane to open after a reported message is processed, when the `event.completed` call
166+
occurs, any task pane that's open or pinned is closed.
167+
168+
169+
- To retrieve the value of the `contextData` property, you must call
170+
`Office.context.mailbox.item.getInitializationContextAsync` in the JavaScript implementation of your task pane. If
171+
you create a JSON string using `JSON.stringify()` and assign it to the `contextData` property, you must parse the
172+
string using `JSON.parse()` once you retrieve it.
173+
isPreview: true
174+
isDeprecated: false
175+
syntax:
176+
content: 'contextData?: any;'
177+
return:
178+
type: any
66179
- name: folderName
67180
uid: 'outlook!Office.SpamReportingEventCompletedOptions#folderName:member'
68181
package: outlook!
@@ -138,6 +251,11 @@ properties:
138251
of the folder to which the message will be moved in the `folderName` property of the `event.completed` call.
139252
Otherwise, the `moveItemTo` property will default to `Office.MailboxEnums.MoveSpamItemTo.JunkFolder` and move the
140253
reported message to the **Junk Email** folder.
254+
255+
256+
- If you configure the `commandId` and `contextData` options in the `event.completed` call to open a task pane
257+
after a user selects the **Report** option from the preprocessing dialog, you must set the `moveItemTo` option
258+
to `Office.MailboxEnums.MoveSpamItemTo.NoMove`<!-- -->. Otherwise, the task pane won't open.
141259
isPreview: false
142260
isDeprecated: false
143261
syntax:
@@ -288,6 +406,12 @@ properties:
288406
**[Applicable Outlook
289407
mode](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points)<!--
290408
-->**: Message Read
409+
410+
411+
**Important**: If you configure the `commandId` and `contextData` options in the `event.completed` call to
412+
open a task pane after a user selects the **Report** option from the preprocessing dialog, a post-processing
413+
dialog isn't shown to the user. This behavior applies even if the `showPostProcessingDialog` is specified in the
414+
`event.completed` call.
291415
isPreview: false
292416
isDeprecated: false
293417
syntax:

docs/includes/outlook-preview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,5 @@
9696
||[loadItemByIdAsync(itemId: string, options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<LoadedMessageCompose \| LoadedMessageRead>) => void)](/javascript/api/outlook/office.mailbox#outlook-office-mailbox-loaditembyidasync-member(1))|Loads a single mail item by its Exchange Web Services (EWS) ID.|
9797
|[MessageRead](/javascript/api/outlook/office.messageread)|[display](/javascript/api/outlook/office.messageread#outlook-office-messageread-display-member)|Gets an object to temporarily set the content displayed in the body or subject of a message in read mode.|
9898
|[SmartAlertsEventCompletedOptions](/javascript/api/outlook/office.smartalertseventcompletedoptions)|[errorMessageMarkdown](/javascript/api/outlook/office.smartalertseventcompletedoptions#outlook-office-smartalertseventcompletedoptions-errormessagemarkdown-member)|When you use the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | completed method} to signal completion of an event handler|
99+
|[SpamReportingEventCompletedOptions](/javascript/api/outlook/office.spamreportingeventcompletedoptions)|[commandId](/javascript/api/outlook/office.spamreportingeventcompletedoptions#outlook-office-spamreportingeventcompletedoptions-commandid-member)|When you use the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | completed method} to signal that a reported message has finished processing,|
100+
||[contextData](/javascript/api/outlook/office.spamreportingeventcompletedoptions#outlook-office-spamreportingeventcompletedoptions-contextdata-member)|When you use the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | completed method} to signal that a reported message has finished processing,|

generate-docs/API Coverage Report.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9616,6 +9616,8 @@ Office.SpamReportingEventArgs,"freeText",Property,Good,false
96169616
Office.SpamReportingEventArgs,"options",Property,Good,false
96179617
Office.SpamReportingEventArgs,"type",Property,Good,false
96189618
Office.SpamReportingEventCompletedOptions,N/A,Class,Good,true
9619+
Office.SpamReportingEventCompletedOptions,"commandId",Property,Good,false
9620+
Office.SpamReportingEventCompletedOptions,"contextData",Property,Good,false
96199621
Office.SpamReportingEventCompletedOptions,"folderName",Property,Good,false
96209622
Office.SpamReportingEventCompletedOptions,"moveItemTo",Property,Good,false
96219623
Office.SpamReportingEventCompletedOptions,"onErrorDeleteItem",Property,Good,false

generate-docs/api-extractor-inputs-outlook/outlook.d.ts

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14720,6 +14720,73 @@ export declare namespace Office {
1472014720
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
1472114721
*/
1472214722
export interface SpamReportingEventCompletedOptions {
14723+
/**
14724+
* When you use the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | completed method} to signal that a reported message has finished processing,
14725+
* this property specifies the ID of the task pane that opens after the message is processed.
14726+
*
14727+
* @remarks
14728+
*
14729+
* [Api set: Mailbox preview]
14730+
*
14731+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **read item**
14732+
*
14733+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
14734+
*
14735+
* **Important**:
14736+
*
14737+
* - 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,
14738+
* install Version 2411 (Build 18227.20034) or later. Then, join the
14739+
* {@link https://techcommunity.microsoft.com/blog/microsoft365insiderblog/join-the-microsoft-365-insider-program-on-windows/4206638 | Microsoft 365 Insider program}
14740+
* and select the **Beta Channel** option. To learn how to implement this in your spam-reporting add-in, see
14741+
* {@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)}.
14742+
*
14743+
* - The `commandId` value must match the task pane ID specified in the manifest of your add-in. In an add-in only manifest,
14744+
* 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.
14745+
* The `commandId` property isn't currently supported in a spam-reporting add-in that uses a unified manifest for Microsoft 365.
14746+
*
14747+
* - If you configure the `commandId` option in the `event.completed` call, a post-processing dialog isn't shown to the user
14748+
* even if the `showPostProcessingDialog` option is specified in the call.
14749+
*
14750+
* - 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.
14751+
*
14752+
* @beta
14753+
*/
14754+
commandId?: string;
14755+
/**
14756+
* When you use the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | completed method} to signal that a reported message has finished processing,
14757+
* this property specifies any JSON data passed to the add-in's task pane after the message is processed.
14758+
*
14759+
* @remarks
14760+
*
14761+
* [Api set: Mailbox preview]
14762+
*
14763+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **read item**
14764+
*
14765+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
14766+
*
14767+
* **Important**:
14768+
*
14769+
* - 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,
14770+
* install Version 2411 (Build 18227.20034) or later. Then, join the
14771+
* {@link https://techcommunity.microsoft.com/blog/microsoft365insiderblog/join-the-microsoft-365-insider-program-on-windows/4206638 | Microsoft 365 Insider program}
14772+
* and select the **Beta Channel** option. To learn how to implement this in your spam-reporting add-in, see
14773+
* {@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)}.
14774+
*
14775+
* - If you specify the `contextData` option in your `event.completed` call, you must also assign a task pane ID to the `commandId` option.
14776+
* Otherwise, the JSON data assigned to `contextData` is ignored.
14777+
*
14778+
* - If you configure the `commandId` and `contextData` options in the `event.completed` call, a post-processing dialog isn't shown to the user
14779+
* even if the `showPostProcessingDialog` option is specified in the call.
14780+
*
14781+
* - 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.
14782+
*
14783+
* - To retrieve the value of the `contextData` property, you must call `Office.context.mailbox.item.getInitializationContextAsync` in the JavaScript implementation
14784+
* 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
14785+
* `JSON.parse()` once you retrieve it.
14786+
*
14787+
* @beta
14788+
*/
14789+
contextData?: any;
1472314790
/**
1472414791
* When you use the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | completed method} to signal that a reported message has finished processing,
1472514792
* this property specifies the Outlook mailbox folder to which the message will be moved.
@@ -14762,6 +14829,9 @@ export declare namespace Office {
1476214829
* - If the property is set to `Office.MailboxEnums.MoveSpamItemTo.CustomFolder`, you must specify the name of the folder to which
1476314830
* the message will be moved in the `folderName` property of the `event.completed` call. Otherwise, the `moveItemTo` property will default to
1476414831
* `Office.MailboxEnums.MoveSpamItemTo.JunkFolder` and move the reported message to the **Junk Email** folder.
14832+
*
14833+
* - If you configure the `commandId` and `contextData` options in the `event.completed` call to open a task pane after a user selects the **Report** option from the preprocessing dialog,
14834+
* you must set the `moveItemTo` option to `Office.MailboxEnums.MoveSpamItemTo.NoMove`. Otherwise, the task pane won't open.
1476514835
*/
1476614836
moveItemTo?: MailboxEnums.MoveSpamItemTo;
1476714837
/**
@@ -14823,6 +14893,9 @@ export declare namespace Office {
1482314893
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level (Outlook)}**: **read item**
1482414894
*
1482514895
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
14896+
*
14897+
* **Important**: If you configure the `commandId` and `contextData` options in the `event.completed` call to open a task pane after a user selects the **Report** option from the preprocessing dialog,
14898+
* a post-processing dialog isn't shown to the user. This behavior applies even if the `showPostProcessingDialog` is specified in the `event.completed` call.
1482614899
*/
1482714900
showPostProcessingDialog?: object;
1482814901
}

0 commit comments

Comments
 (0)