Skip to content

Commit a366f81

Browse files
author
github-actions
committed
Merge branch 'main' into prod
2 parents d0d04a8 + 237d11e commit a366f81

File tree

9 files changed

+669
-95
lines changed

9 files changed

+669
-95
lines changed

playlists-prod/outlook.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@
387387
- id: outlook-display-items-display-reply-with-attachments
388388
name: Create a reply with attachments
389389
fileName: display-reply-with-attachments.yaml
390-
description: Opens a reply message forms and adds sample attachments.
390+
description: Opens a reply or reply-all message form and adds sample attachments.
391391
rawUrl: >-
392392
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/55-display-items/display-reply-with-attachments.yaml
393393
group: Display Items
@@ -784,6 +784,15 @@
784784
group: Other Item APIs
785785
api_set:
786786
Mailbox: '1.8'
787+
- id: outlook-send-async
788+
name: Send the current message or appointment (Compose)
789+
fileName: send-async.yaml
790+
description: Sends the current message or appointment.
791+
rawUrl: >-
792+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/90-other-item-apis/send-async.yaml
793+
group: Other Item APIs
794+
api_set:
795+
Mailbox: '1.15'
787796
- id: outlook-get-set-isalldayevent
788797
name: Get and set the isAllDayEvent property (Appointment Organizer)
789798
fileName: get-set-isalldayevent.yaml
@@ -793,15 +802,6 @@
793802
group: Preview APIs
794803
api_set:
795804
Mailbox: preview
796-
- id: outlook-send-async
797-
name: Send the current message or appointment (Compose)
798-
fileName: send-async.yaml
799-
description: Send the current message or appointment.
800-
rawUrl: >-
801-
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/99-preview-apis/send-async.yaml
802-
group: Preview APIs
803-
api_set:
804-
Mailbox: preview
805805
- id: outlook-set-displayed-body-subject
806806
name: Temporarily set the body or subject displayed in a message (Message Read)
807807
fileName: set-displayed-body-subject.yaml

playlists/outlook.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@
387387
- id: outlook-display-items-display-reply-with-attachments
388388
name: Create a reply with attachments
389389
fileName: display-reply-with-attachments.yaml
390-
description: Opens a reply message forms and adds sample attachments.
390+
description: Opens a reply or reply-all message form and adds sample attachments.
391391
rawUrl: >-
392392
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/outlook/55-display-items/display-reply-with-attachments.yaml
393393
group: Display Items
@@ -784,6 +784,15 @@
784784
group: Other Item APIs
785785
api_set:
786786
Mailbox: '1.8'
787+
- id: outlook-send-async
788+
name: Send the current message or appointment (Compose)
789+
fileName: send-async.yaml
790+
description: Sends the current message or appointment.
791+
rawUrl: >-
792+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/outlook/90-other-item-apis/send-async.yaml
793+
group: Other Item APIs
794+
api_set:
795+
Mailbox: '1.15'
787796
- id: outlook-get-set-isalldayevent
788797
name: Get and set the isAllDayEvent property (Appointment Organizer)
789798
fileName: get-set-isalldayevent.yaml
@@ -793,15 +802,6 @@
793802
group: Preview APIs
794803
api_set:
795804
Mailbox: preview
796-
- id: outlook-send-async
797-
name: Send the current message or appointment (Compose)
798-
fileName: send-async.yaml
799-
description: Send the current message or appointment.
800-
rawUrl: >-
801-
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/outlook/99-preview-apis/send-async.yaml
802-
group: Preview APIs
803-
api_set:
804-
Mailbox: preview
805805
- id: outlook-set-displayed-body-subject
806806
name: Temporarily set the body or subject displayed in a message (Message Read)
807807
fileName: set-displayed-body-subject.yaml

samples/outlook/40-attachments/get-attachments-read.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,20 @@ script:
99
$("#run").on("click", run);
1010
1111
function run() {
12-
const attachments = Office.context.mailbox.item.attachments;
13-
console.log(attachments);
12+
const item = Office.context.mailbox.item;
13+
14+
if (item.attachments.length > 0) {
15+
for (let i = 0; i < item.attachments.length; i++) {
16+
const attachment = item.attachments[i];
17+
console.log(`${i+1}. Name: ${attachment.name}`);
18+
console.log(`ID: ${attachment.id}`);
19+
console.log(`Type: ${attachment.attachmentType}`);
20+
console.log(`Inline content: ${attachment.isInline}`);
21+
console.log(`Size: ${attachment.size}`);
22+
}
23+
} else {
24+
console.log("This mail item doesn't contain any attachments.");
25+
}
1426
}
1527
language: typescript
1628
template:

samples/outlook/55-display-items/display-reply-with-attachments.yaml

Lines changed: 151 additions & 23 deletions
Large diffs are not rendered by default.

samples/outlook/99-preview-apis/send-async.yaml renamed to samples/outlook/90-other-item-apis/send-async.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
order: 2
1+
order: 30
22
id: outlook-send-async
33
name: Send the current message or appointment (Compose)
44
description: Sends the current message or appointment.
55
host: OUTLOOK
66
api_set:
7-
Mailbox: preview
7+
Mailbox: '1.15'
88
script:
99
content: |
1010
$("#send-async").on("click", sendAsync);
@@ -47,8 +47,8 @@ style:
4747
}
4848
language: css
4949
libraries: |-
50-
https://appsforoffice.microsoft.com/lib/beta/hosted/office.js
51-
@types/office-js-preview
50+
https://appsforoffice.microsoft.com/lib/1/hosted/office.js
51+
@types/office-js
5252
5353
office-ui-fabric-core@11.1.0/dist/css/fabric.min.css
5454
office-ui-fabric-js@1.5.0/dist/css/fabric.components.min.css
301 Bytes
Binary file not shown.

snippet-extractor-output/snippets.yaml

Lines changed: 478 additions & 44 deletions
Large diffs are not rendered by default.

view-prod/outlook.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"outlook-get-conversation-index": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/90-other-item-apis/get-conversation-index.yaml",
8383
"outlook-get-item-class-async": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/90-other-item-apis/get-item-class-async.yaml",
8484
"outlook-other-item-apis-item-id-compose": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/90-other-item-apis/item-id-compose.yaml",
85+
"outlook-send-async": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/90-other-item-apis/send-async.yaml",
8586
"outlook-get-set-isalldayevent": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/99-preview-apis/get-set-isalldayevent.yaml",
86-
"outlook-send-async": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/99-preview-apis/send-async.yaml",
8787
"outlook-set-displayed-body-subject": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/99-preview-apis/set-displayed-body-subject.yaml"
8888
}

view/outlook.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"outlook-get-conversation-index": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/outlook/90-other-item-apis/get-conversation-index.yaml",
8383
"outlook-get-item-class-async": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/outlook/90-other-item-apis/get-item-class-async.yaml",
8484
"outlook-other-item-apis-item-id-compose": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/outlook/90-other-item-apis/item-id-compose.yaml",
85+
"outlook-send-async": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/outlook/90-other-item-apis/send-async.yaml",
8586
"outlook-get-set-isalldayevent": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/outlook/99-preview-apis/get-set-isalldayevent.yaml",
86-
"outlook-send-async": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/outlook/99-preview-apis/send-async.yaml",
8787
"outlook-set-displayed-body-subject": "https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/outlook/99-preview-apis/set-displayed-body-subject.yaml"
8888
}

0 commit comments

Comments
 (0)