File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 11582
11582
console.log("masterCategories.removeAsync call failed with error: " + asyncResult.error.message);
11583
11583
}
11584
11584
});
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
+ );
11585
11602
'Office.MessageCompose#addFileAttachmentAsync:member(1)':
11586
11603
- >-
11587
11604
// Link to full sample:
You can’t perform that action at this time.
0 commit comments