Skip to content

Commit ac1acf9

Browse files
[office-js-preview] (Outlook) Document the contentId property for inline attachments (DefinitelyTyped#73800)
1 parent b09a91a commit ac1acf9

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

types/office-js-preview/index.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12978,6 +12978,24 @@ declare namespace Office {
1297812978
* `Office.MailboxEnums.AttachmentType.File`. The file name extension is returned in the `name` property.
1297912979
*/
1298012980
attachmentType: MailboxEnums.AttachmentType | string;
12981+
/**
12982+
* Gets the content identifier of an inline attachment.
12983+
*
12984+
* @remarks
12985+
*
12986+
* **Important**:
12987+
*
12988+
* - The `contentId` property is only supported in Outlook on the web and the new Outlook on Windows.
12989+
*
12990+
* - Starting November 15, 2025, changes to how inline images are represented in the HTML body of Outlook emails in
12991+
* Outlook on the web and the new Outlook on Windows will begin rolling out to production users.
12992+
* Previously, the attachment ID of the image appeared in the `src` attribute of the applicable `<img>` element.
12993+
* After the change, the image will be represented by a content ID (`cid`) in the `src` attribute instead.
12994+
* As a result, you'll need to update your add-in's parsing logic if you parse the attachment ID from the HTML editor or
12995+
* get the Base64 value of the image from the URL in the `src` attribute. For more information, see
12996+
* {@link https://devblogs.microsoft.com/microsoft365dev/changes-to-inline-images-in-outlook | Changes to inline image representation in Outlook on the web and new Outlook for Windows}.
12997+
*/
12998+
contentId: string;
1298112999
/**
1298213000
* Gets the index of the attachment.
1298313001
*/

types/office-js/index.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12933,6 +12933,22 @@ declare namespace Office {
1293312933
* `Office.MailboxEnums.AttachmentType.File`. The file name extension is returned in the `name` property.
1293412934
*/
1293512935
attachmentType: MailboxEnums.AttachmentType | string;
12936+
/**
12937+
* Gets the content identifier of an inline attachment.
12938+
*
12939+
* **Important**:
12940+
*
12941+
* - The `contentId` property is only supported in Outlook on the web and the new Outlook on Windows.
12942+
*
12943+
* - Starting November 15, 2025, changes to how inline images are represented in the HTML body of Outlook emails in
12944+
* Outlook on the web and the new Outlook on Windows will begin rolling out to production users.
12945+
* Previously, the attachment ID of the image appeared in the `src` attribute of the applicable `<img>` element.
12946+
* After the change, the image will be represented by a content ID (`cid`) in the `src` attribute instead.
12947+
* As a result, you'll need to update your add-in's parsing logic if you parse the attachment ID from the HTML editor or
12948+
* get the Base64 value of the image from the URL in the `src` attribute. For more information, see
12949+
* {@link https://devblogs.microsoft.com/microsoft365dev/changes-to-inline-images-in-outlook | Changes to inline image representation in Outlook on the web and new Outlook for Windows}.
12950+
*/
12951+
contentId: string;
1293612952
/**
1293712953
* Gets the index of the attachment.
1293812954
*/

0 commit comments

Comments
 (0)