Skip to content

Commit 5175649

Browse files
author
github-actions
committed
Merge branch 'main' into live
2 parents 7921c32 + d11aa49 commit 5175649

File tree

247 files changed

+6316
-12277
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+6316
-12277
lines changed

.github/workflows/auto-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: auto-publish
22
run-name: Automatically publish documentation
33
on:
44
schedule:
5-
- cron: '00 22 * * TUE'
6-
- cron: '00 22 * * THU'
5+
# Run at 2:00 AM UTC on Wednesday and Friday
6+
- cron: '0 2 * * WED,FRI'
77
jobs:
88
auto-publish:
99
runs-on: ubuntu-latest

docs/code-snippets/outlook-snippets.yaml

Lines changed: 19 additions & 475 deletions
Large diffs are not rendered by default.

docs/docs-ref-autogen/office/office/office.addincommands.event.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,18 @@ methods:
289289
This method must be called at the end of a function which was invoked by the following:
290290
291291
292-
- A function command button (that is, an add-in command defined with an **<!-- -->&lt;<!-- -->Action<!--
293-
-->&gt;<!-- -->** element, where the `xsi:type` attribute is set to `ExecuteFunction`<!-- -->).
292+
- A [function command](https://learn.microsoft.com/office/dev/add-ins/design/add-in-commands) button.
294293
295294
296-
- An [event](https://learn.microsoft.com/javascript/api/manifest/event) defined in the [Events extension
297-
point](https://learn.microsoft.com/javascript/api/manifest/extensionpoint#events) of an on-send add-in in Outlook.
298-
For example, an `ItemSend` event.
295+
- An [on-send add-in](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins) in Outlook.
296+
297+
298+
- An [online-meeting provider add-in](https://learn.microsoft.com/office/dev/add-ins/outlook/online-meeting) in
299+
Outlook.
300+
301+
302+
- A [note-logging add-in](https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-log-appointments) in
303+
Outlook on mobile devices.
299304
remarks: >-
300305
The following outlines support information for Outlook.
301306
@@ -313,9 +318,11 @@ methods:
313318
-->**: Compose or Read
314319
315320
316-
**Important**: The `options` parameter only applies to Outlook add-ins that implement the [on-send
317-
feature](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins)<!-- -->. It was introduced
318-
in Mailbox 1.8.
321+
**Important**: The `options` parameter only applies to Outlook add-ins. It was introduced in Mailbox 1.8.
322+
Although Outlook on Android and on iOS support up to Mailbox 1.5, the `options` parameter is supported in
323+
online-meeting provider and note-logging mobile add-ins. For more information on API support in Outlook on mobile
324+
devices, see [Outlook JavaScript APIs supported in Outlook on mobile
325+
devices](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis)<!-- -->.
319326
320327
321328
#### Examples
@@ -363,8 +370,8 @@ methods:
363370
parameters:
364371
- id: options
365372
description: >-
366-
Optional. An object that specifies the behavior of an on-send add-in in Outlook when it completes processing
367-
an `ItemSend` event.
373+
Optional. In Outlook, an object that specifies the behavior of an on-send add-in, online-meeting provider
374+
add-in, or note-logging mobile add-in when it completes processing an event.
368375
type: '<xref uid="office!Office.AddinCommands.EventCompletedOptions:interface" />'
369376
return:
370377
type: void

docs/docs-ref-autogen/office/office/office.addincommands.eventcompletedoptions.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ uid: 'office!Office.AddinCommands.EventCompletedOptions:interface'
44
package: office!
55
fullName: Office.AddinCommands.EventCompletedOptions
66
summary: >-
7-
Specifies the behavior of an [on-send](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins)
8-
add-in in Outlook when it completes processing an `ItemSend` event.
7+
Specifies the behavior of an [on-send
8+
add-in](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins)<!-- -->, [online-meeting
9+
provider add-in](https://learn.microsoft.com/office/dev/add-ins/outlook/online-meeting)<!-- -->, or [note-logging
10+
mobile add-in](https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-log-appointments) when it completes
11+
processing an event in Outlook.
912
remarks: >-
1013
\[ [API set: Mailbox 1.8](/office/dev/add-ins/reference/javascript-api-for-office) \]
1114
@@ -18,6 +21,12 @@ remarks: >-
1821
**[Applicable Outlook
1922
mode](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points)<!-- -->**:
2023
Compose
24+
25+
26+
**Important**: Although Outlook on Android and on iOS support up to Mailbox 1.5, the `EventCompletedOptions`
27+
object is supported in online-meeting provider and note-logging mobile add-ins. For more information on API support in
28+
Outlook on mobile devices, see [Outlook JavaScript APIs supported in Outlook on mobile
29+
devices](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis)<!-- -->.
2130
isPreview: false
2231
isDeprecated: false
2332
type: interface

docs/docs-ref-autogen/office_release/office/office.addincommands.event.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,18 @@ methods:
284284
This method must be called at the end of a function which was invoked by the following:
285285
286286
287-
- A function command button (that is, an add-in command defined with an **<!-- -->&lt;<!-- -->Action<!--
288-
-->&gt;<!-- -->** element, where the `xsi:type` attribute is set to `ExecuteFunction`<!-- -->).
287+
- A [function command](https://learn.microsoft.com/office/dev/add-ins/design/add-in-commands) button.
289288
290289
291-
- An [event](https://learn.microsoft.com/javascript/api/manifest/event) defined in the [Events extension
292-
point](https://learn.microsoft.com/javascript/api/manifest/extensionpoint#events) of an on-send add-in in Outlook.
293-
For example, an `ItemSend` event.
290+
- An [on-send add-in](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins) in Outlook.
291+
292+
293+
- An [online-meeting provider add-in](https://learn.microsoft.com/office/dev/add-ins/outlook/online-meeting) in
294+
Outlook.
295+
296+
297+
- A [note-logging add-in](https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-log-appointments) in
298+
Outlook on mobile devices.
294299
remarks: >-
295300
The following outlines support information for Outlook.
296301
@@ -308,9 +313,11 @@ methods:
308313
-->**: Compose or Read
309314
310315
311-
**Important**: The `options` parameter only applies to Outlook add-ins that implement the [on-send
312-
feature](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins)<!-- -->. It was introduced
313-
in Mailbox 1.8.
316+
**Important**: The `options` parameter only applies to Outlook add-ins. It was introduced in Mailbox 1.8.
317+
Although Outlook on Android and on iOS support up to Mailbox 1.5, the `options` parameter is supported in
318+
online-meeting provider and note-logging mobile add-ins. For more information on API support in Outlook on mobile
319+
devices, see [Outlook JavaScript APIs supported in Outlook on mobile
320+
devices](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis)<!-- -->.
314321
315322
316323
#### Examples
@@ -358,8 +365,8 @@ methods:
358365
parameters:
359366
- id: options
360367
description: >-
361-
Optional. An object that specifies the behavior of an on-send add-in in Outlook when it completes processing
362-
an `ItemSend` event.
368+
Optional. In Outlook, an object that specifies the behavior of an on-send add-in, online-meeting provider
369+
add-in, or note-logging mobile add-in when it completes processing an event.
363370
type: '<xref uid="office!Office.AddinCommands.EventCompletedOptions:interface" />'
364371
return:
365372
type: void

docs/docs-ref-autogen/office_release/office/office.addincommands.eventcompletedoptions.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ uid: 'office!Office.AddinCommands.EventCompletedOptions:interface'
44
package: office!
55
fullName: Office.AddinCommands.EventCompletedOptions
66
summary: >-
7-
Specifies the behavior of an [on-send](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins)
8-
add-in in Outlook when it completes processing an `ItemSend` event.
7+
Specifies the behavior of an [on-send
8+
add-in](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins)<!-- -->, [online-meeting
9+
provider add-in](https://learn.microsoft.com/office/dev/add-ins/outlook/online-meeting)<!-- -->, or [note-logging
10+
mobile add-in](https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-log-appointments) when it completes
11+
processing an event in Outlook.
912
remarks: >-
1013
\[ [API set: Mailbox 1.8](/office/dev/add-ins/reference/javascript-api-for-office) \]
1114
@@ -18,6 +21,12 @@ remarks: >-
1821
**[Applicable Outlook
1922
mode](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points)<!-- -->**:
2023
Compose
24+
25+
26+
**Important**: Although Outlook on Android and on iOS support up to Mailbox 1.5, the `EventCompletedOptions`
27+
object is supported in online-meeting provider and note-logging mobile add-ins. For more information on API support in
28+
Outlook on mobile devices, see [Outlook JavaScript APIs supported in Outlook on mobile
29+
devices](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis)<!-- -->.
2130
isPreview: false
2231
isDeprecated: false
2332
type: interface

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

Lines changed: 21 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -209,30 +209,6 @@ properties:
209209
#### Examples
210210
211211
212-
```TypeScript
213-
214-
// The following example sets the end time of an appointment in compose mode by
215-
216-
// using the `setAsync` method of the `Time` object.
217-
218-
const endTime = new Date("3/14/2015");
219-
220-
const options = {
221-
// Pass information that can be used in the callback.
222-
asyncContext: {verb: "Set"}
223-
};
224-
225-
Office.context.mailbox.item.end.setAsync(endTime, options, function(result) {
226-
if (result.error) {
227-
console.debug(result.error);
228-
} else {
229-
// Access the asyncContext that was passed to the setAsync method.
230-
console.debug("End Time " + result.asyncContext.verb);
231-
}
232-
});
233-
234-
```
235-
236212
```TypeScript
237213
238214
// Link to full sample:
@@ -502,20 +478,6 @@ properties:
502478
#### Examples
503479
504480
505-
```TypeScript
506-
507-
const userContext = { value : 1 };
508-
509-
Office.context.mailbox.item.location.getAsync( { context: userContext}, callback);
510-
511-
512-
function callback(asyncResult) {
513-
const context = asyncResult.context;
514-
const location = asyncResult.value;
515-
}
516-
517-
```
518-
519481
```TypeScript
520482
521483
// Link to full sample:
@@ -700,21 +662,6 @@ properties:
700662
#### Examples
701663
702664
703-
```TypeScript
704-
705-
Office.context.mailbox.item.optionalAttendees.setAsync( ['[email protected]', '[email protected]'] );
706-
707-
Office.context.mailbox.item.optionalAttendees.addAsync( ['[email protected]'] );
708-
709-
Office.context.mailbox.item.optionalAttendees.getAsync(callback);
710-
711-
712-
function callback(asyncResult) {
713-
const arrayOfOptionalAttendeesRecipients = asyncResult.value;
714-
}
715-
716-
```
717-
718665
```TypeScript
719666
720667
// Link to full sample:
@@ -949,22 +896,6 @@ properties:
949896
#### Examples
950897
951898
952-
```TypeScript
953-
954-
Office.context.mailbox.item.requiredAttendees.setAsync( ['[email protected]', '[email protected]'] );
955-
956-
Office.context.mailbox.item.requiredAttendees.addAsync( ['[email protected]'] );
957-
958-
Office.context.mailbox.item.requiredAttendees.getAsync(callback);
959-
960-
961-
function callback(asyncResult) {
962-
const arrayOfRequiredAttendeesRecipients = asyncResult.value;
963-
console.log(JSON.stringify(arrayOfRequiredAttendeesRecipients));
964-
}
965-
966-
```
967-
968899
```TypeScript
969900
970901
// Link to full sample:
@@ -3824,6 +3755,27 @@ methods:
38243755
38253756
- Any code included after the `sendAsync` call isn't guaranteed to run since the add-in completes processing after
38263757
the `sendAsync` call.
3758+
3759+
3760+
#### Examples
3761+
3762+
3763+
```TypeScript
3764+
3765+
// Link to full sample:
3766+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/90-other-item-apis/send-async.yaml
3767+
3768+
3769+
// This snippet sends the current message or appointment being composed.
3770+
3771+
Office.context.mailbox.item.sendAsync((asyncResult) => {
3772+
if (asyncResult.status === Office.AsyncResultStatus.Failed) {
3773+
console.log("Action failed with error: " + asyncResult.error.message);
3774+
return;
3775+
}
3776+
});
3777+
3778+
```
38273779
isPreview: false
38283780
isDeprecated: false
38293781
syntax:

0 commit comments

Comments
 (0)