From 970dc8fea884bfbbaac5111803de62780c15a3c5 Mon Sep 17 00:00:00 2001 From: Elizabeth Samuel Date: Thu, 16 Jan 2020 09:08:44 -0800 Subject: [PATCH] [office-js] [office-js-preview] (Outlook) Workaround for file attachment bug (#41620) --- types/office-js-preview/index.d.ts | 16 ++++++++++++++++ types/office-js/index.d.ts | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 1c5a92ff13..d12ee44e5c 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -9100,6 +9100,10 @@ declare namespace Office { * * You can subsequently use the identifier with the removeAttachmentAsync method to remove the attachment in the same session. * + * **Important**: In recent builds of Outlook on Windows, a bug was introduced that incorrectly appends an `Authorization: Bearer` header to + * this action (whether using this API or the Outlook UI). To work around this issue, you can try using the `addFileAttachmentFromBase64` API + * introduced with requirement set 1.8. + * * [Api set: Mailbox 1.1] * * @remarks @@ -9133,6 +9137,10 @@ declare namespace Office { * * You can subsequently use the identifier with the removeAttachmentAsync method to remove the attachment in the same session. * + * **Important**: In recent builds of Outlook on Windows, a bug was introduced that incorrectly appends an `Authorization: Bearer` header to + * this action (whether using this API or the Outlook UI). To work around this issue, you can try using the `addFileAttachmentFromBase64` API + * introduced with requirement set 1.8. + * * [Api set: Mailbox 1.1] * * @remarks @@ -13263,6 +13271,10 @@ declare namespace Office { * * You can subsequently use the identifier with the removeAttachmentAsync method to remove the attachment in the same session. * + * **Important**: In recent builds of Outlook on Windows, a bug was introduced that incorrectly appends an `Authorization: Bearer` header to + * this action (whether using this API or the Outlook UI). To work around this issue, you can try using the `addFileAttachmentFromBase64` API + * introduced with requirement set 1.8. + * * [Api set: Mailbox 1.1] * * @remarks @@ -13298,6 +13310,10 @@ declare namespace Office { * * You can subsequently use the identifier with the removeAttachmentAsync method to remove the attachment in the same session. * + * **Important**: In recent builds of Outlook on Windows, a bug was introduced that incorrectly appends an `Authorization: Bearer` header to + * this action (whether using this API or the Outlook UI). To work around this issue, you can try using the `addFileAttachmentFromBase64` API + * introduced with requirement set 1.8. + * * [Api set: Mailbox 1.1] * * @remarks diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index e1f64bdd52..4f7dbc51d2 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -9005,6 +9005,10 @@ declare namespace Office { * * You can subsequently use the identifier with the removeAttachmentAsync method to remove the attachment in the same session. * + * **Important**: In recent builds of Outlook on Windows, a bug was introduced that incorrectly appends an `Authorization: Bearer` header to + * this action (whether using this API or the Outlook UI). To work around this issue, you can try using the `addFileAttachmentFromBase64` API + * introduced with requirement set 1.8. + * * [Api set: Mailbox 1.1] * * @remarks @@ -9038,6 +9042,10 @@ declare namespace Office { * * You can subsequently use the identifier with the removeAttachmentAsync method to remove the attachment in the same session. * + * **Important**: In recent builds of Outlook on Windows, a bug was introduced that incorrectly appends an `Authorization: Bearer` header to + * this action (whether using this API or the Outlook UI). To work around this issue, you can try using the `addFileAttachmentFromBase64` API + * introduced with requirement set 1.8. + * * [Api set: Mailbox 1.1] * * @remarks @@ -13076,6 +13084,10 @@ declare namespace Office { * * You can subsequently use the identifier with the removeAttachmentAsync method to remove the attachment in the same session. * + * **Important**: In recent builds of Outlook on Windows, a bug was introduced that incorrectly appends an `Authorization: Bearer` header to + * this action (whether using this API or the Outlook UI). To work around this issue, you can try using the `addFileAttachmentFromBase64` API + * introduced with requirement set 1.8. + * * [Api set: Mailbox 1.1] * * @remarks @@ -13111,6 +13123,10 @@ declare namespace Office { * * You can subsequently use the identifier with the removeAttachmentAsync method to remove the attachment in the same session. * + * **Important**: In recent builds of Outlook on Windows, a bug was introduced that incorrectly appends an `Authorization: Bearer` header to + * this action (whether using this API or the Outlook UI). To work around this issue, you can try using the `addFileAttachmentFromBase64` API + * introduced with requirement set 1.8. + * * [Api set: Mailbox 1.1] * * @remarks