-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Outlook] (EWS, REST) Update guidance and supported Exchange environments #4850
base: main
Are you sure you want to change the base?
Conversation
samantharamon
commented
Oct 11, 2024
- Retires outdated articles.
- Clarifies that Exchange Web Services (EWS) can only be used in Exchange on-premises environments.
- Promotes the use of Microsoft Graph and nested app authentication in Exchange Online environments.
Learn Build status updates of commit 7b78bb5:
|
Learn Build status updates of commit 218c815: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
``` | ||
|
||
You can check for success or error of an asynchronous method call in the callback function using the `status` and `error` properties of the `AsyncResult` object. If the attaching completes successfully, you can use the `AsyncResult.value` property to get the attachment ID. The attachment ID is an integer which you can subsequently use to remove the attachment. | ||
To check for a successful asynchronous method call in the callback function, use the `status` and `error` properties of the `AsyncResult` object. If the attaching completes successfully, use the `AsyncResult.value` property to get the attachment ID. The attachment ID is an integer which you can subsequently use to remove the attachment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To check for a successful asynchronous method call in the callback function, use the `status` and `error` properties of the `AsyncResult` object. If the attaching completes successfully, use the `AsyncResult.value` property to get the attachment ID. The attachment ID is an integer which you can subsequently use to remove the attachment. | |
To check for the outcome of an asynchronous method call in the callback function, use the `status` and `error` properties of the `AsyncResult` object. If the attaching completes successfully, use the `AsyncResult.value` property to get the attachment ID. The attachment ID is an integer which you can subsequently use to remove the attachment. |
``` | ||
|
||
To add an inline base64 image to the body of a message or appointment being composed, you must first get the current item body using the `Office.context.mailbox.item.body.getAsync` method before inserting the image using the `addFileAttachmentFromBase64Async` method. Otherwise, the image will not render in the body once it's inserted. For guidance, see the following JavaScript example, which adds an inline Base64 image to the beginning of an item body. | ||
To add an inline Base64 image to the body of a message or appointment being composed, you must first get the current item body using the `Office.context.mailbox.item.body.getAsync` method before inserting the image using the `addFileAttachmentFromBase64Async` method. Otherwise, the image won't render in the body once it's inserted. For guidance, see the following JavaScript example, which adds an inline Base64 image to the beginning of an item body. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To add an inline Base64 image to the body of a message or appointment being composed, you must first get the current item body using the `Office.context.mailbox.item.body.getAsync` method before inserting the image using the `addFileAttachmentFromBase64Async` method. Otherwise, the image won't render in the body once it's inserted. For guidance, see the following JavaScript example, which adds an inline Base64 image to the beginning of an item body. | |
To add inline a Base64-encoded image to the body of a message or appointment being composed, you must first get the current item body using the `Office.context.mailbox.item.body.getAsync` method before inserting the image using the `addFileAttachmentFromBase64Async` method. Otherwise, the image won't render in the body once it's inserted. For guidance, see the following JavaScript example, which adds an inline Base64 image to the beginning of an item body. |
console.error(bodyResult.error.message); | ||
return; | ||
} | ||
|
||
// Insert the Base64 image to the beginning of the body. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Insert the Base64 image to the beginning of the body. | |
// Insert the Base64-encoded image at the beginning of the body. |
@@ -20,7 +20,7 @@ The first step to enabling add-in commands in Outlook mobile is to define them i | |||
```json | |||
"formFactors": [ | |||
"mobile", | |||
<!-- Typically there will be other form factors listed. --> | |||
<!-- Typically, there will be other form factors listed. --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<!-- Typically, there will be other form factors listed. --> | |
<!-- Typically, there'll be other form factors listed. --> |
title: Get attachments in an Outlook add-in | ||
description: Your add-in can use the attachments API to send information about the attachments to a remote service. | ||
ms.date: 08/07/2023 | ||
title: Get attachments of an Outlook item from Exchange |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title: Get attachments of an Outlook item from Exchange | |
title: Get an Outlook item's attachments from Exchange |
ms.topic: how-to | ||
ms.localizationpriority: medium | ||
--- | ||
|
||
# Get attachments of an Outlook item from the server | ||
# Get attachments of an Outlook item from Exchange |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Get attachments of an Outlook item from Exchange | |
# Get an Outlook item's attachments from Exchange |