Skip to content

Commit e4afc31

Browse files
[Outlook] (Message Compose) Map code sample (#963)
1 parent e9cade9 commit e4afc31

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
85 Bytes
Binary file not shown.

snippet-extractor-output/snippets.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -11582,6 +11582,23 @@
1158211582
console.log("masterCategories.removeAsync call failed with error: " + asyncResult.error.message);
1158311583
}
1158411584
});
11585+
'Office.MessageCompose:interface':
11586+
- >-
11587+
// Link to full sample:
11588+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/40-attachments/attachments-compose.yaml
11589+
11590+
11591+
const attachmentUrl = $("#attachmentUrl")
11592+
.val()
11593+
.toString();
11594+
Office.context.mailbox.item.addFileAttachmentAsync(
11595+
attachmentUrl,
11596+
getFileName(attachmentUrl),
11597+
{ isInline: false },
11598+
(result) => {
11599+
console.log(result);
11600+
}
11601+
);
1158511602
'Office.MessageCompose#addFileAttachmentAsync:member(1)':
1158611603
- >-
1158711604
// Link to full sample:

0 commit comments

Comments
 (0)