This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Delay Deliver | |
description: '' | |
host: OUTLOOK | |
api_set: {} | |
script: | |
content: | | |
$("#delay").click(delay); | |
function multiselect() { | |
Office.context.mailbox.getSelectedItemsAsync(function(result) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Delay Deliver | |
description: '' | |
host: OUTLOOK | |
api_set: {} | |
script: | |
content: | | |
$("#delay").click(delay); | |
function multiselect() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Multiselect | |
description: Prepends and Multiselect Samples | |
host: OUTLOOK | |
api_set: {} | |
script: | |
content: | | |
$("#prepend-on-send").click(prependOnSend); | |
$("#multiSelect").click(multiselect); | |
function prependOnSend() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Manipulate attachments (Item Compose) (1) | |
description: >- | |
Adds, gets, and removes attachments from a message or an appointment in | |
Compose mode. | |
host: OUTLOOK | |
api_set: {} | |
script: | |
content: | | |
$("#add").click(add); | |
$("#addItemAttachment").click(addItemAttachment); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Basic API call (JavaScript) (1) | |
description: Performs a basic Excel API call using plain JavaScript & Promises. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(run)); | |
function run() { | |
Office.context.document.bindings.addFromPromptAsync(Office.BindingType.Matrix,{},function(result){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: StylesOOXML | |
description: how to create styles using OOXML | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#getO").click(() => tryCatch(getOoxml)); | |
$("#get1").click(() => tryCatch(loadOoxml)); | |
$("#setO").click(() => tryCatch(setOoxml)); | |
$("#styleIn").click(() => tryCatch(insertWithStyle)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Work with item custom properties | |
description: >- | |
Gets the custom properties that the add-in placed on the current item, sets a | |
new one, gets it, removes it, and saves all custom properties back to the | |
item. | |
host: OUTLOOK | |
api_set: {} | |
script: | |
content: | | |
let customProps; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Get a message using EWS | |
description: Gets a message using EWS without any back-end code. | |
host: OUTLOOK | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(run); | |
function run() { | |
const ewsId = Office.context.mailbox.item.itemId; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Blank snippet (6) | |
description: Create a new snippet from a blank template. | |
host: OUTLOOK | |
api_set: {} | |
script: | |
content: |- | |
$("#run").click(run); | |
function run() { | |
Office.context.mailbox.item.addHandlerAsync(Office.EventType.RecipientsChanged,handler,function(result){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Work with client signatures (Compose) | |
description: >- | |
Check if the client signature is enabled, disable the client signature, get | |
the compose type, and set a signature in Compose mode. | |
host: OUTLOOK | |
api_set: {} | |
script: | |
content: | | |
$("#isClientSignatureEnabled").click(isClientSignatureEnabled); | |
$("#disableClientSignature").click(disableClientSignature); |