Skip to content

[Outlook] (body) Remove redundant code snippet #2259

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

Merged
merged 3 commits into from
Jun 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions docs/code-snippets/outlook-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,22 +252,6 @@ Office.AttachmentContent:interface:
// Log the content of the attachments as a string.
console.log(result.value.content);
}
Office.Body#getAsync:member(1):
- |-
// This example gets the body of the item as plain text.
Office.context.mailbox.item.body.getAsync(
"text",
{ asyncContext: "This is passed to the callback" },
function callback(result) {
// Do something with the result.
});

// The following is an example of the result parameter passed to the callback function.
{
"value": "TEXT of whole body (including threads below)",
"status": "succeeded",
"asyncContext": "This is passed to the callback"
}
Office.Body#setAsync:member(1):
- |-
// When including links in HTML markup, you can disable online link preview
Expand Down
26 changes: 0 additions & 26 deletions docs/docs-ref-autogen/outlook/outlook/office.body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -396,32 +396,6 @@ methods:
messages](https://learn.microsoft.com/office/dev/add-ins/outlook/item-multi-select)<!--
-->.


#### Examples


```TypeScript

// This example gets the body of the item as plain text.

Office.context.mailbox.item.body.getAsync(
"text",
{ asyncContext: "This is passed to the callback" },
function callback(result) {
// Do something with the result.
});

// The following is an example of the result parameter passed to the
callback function.

{
"value": "TEXT of whole body (including threads below)",
"status": "succeeded",
"asyncContext": "This is passed to the callback"
}

```

isPreview: false
isDeprecated: false
syntax:
Expand Down
26 changes: 0 additions & 26 deletions docs/docs-ref-autogen/outlook_1_10/outlook/office.body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,32 +376,6 @@ methods:
links, specify `Office.CoercionType.Html` in the `getAsync` call.
Otherwise, you may receive an unexpected value, such as an empty string.


#### Examples


```TypeScript

// This example gets the body of the item as plain text.

Office.context.mailbox.item.body.getAsync(
"text",
{ asyncContext: "This is passed to the callback" },
function callback(result) {
// Do something with the result.
});

// The following is an example of the result parameter passed to the
callback function.

{
"value": "TEXT of whole body (including threads below)",
"status": "succeeded",
"asyncContext": "This is passed to the callback"
}

```

isPreview: false
isDeprecated: false
syntax:
Expand Down
26 changes: 0 additions & 26 deletions docs/docs-ref-autogen/outlook_1_11/outlook/office.body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,32 +376,6 @@ methods:
links, specify `Office.CoercionType.Html` in the `getAsync` call.
Otherwise, you may receive an unexpected value, such as an empty string.


#### Examples


```TypeScript

// This example gets the body of the item as plain text.

Office.context.mailbox.item.body.getAsync(
"text",
{ asyncContext: "This is passed to the callback" },
function callback(result) {
// Do something with the result.
});

// The following is an example of the result parameter passed to the
callback function.

{
"value": "TEXT of whole body (including threads below)",
"status": "succeeded",
"asyncContext": "This is passed to the callback"
}

```

isPreview: false
isDeprecated: false
syntax:
Expand Down
26 changes: 0 additions & 26 deletions docs/docs-ref-autogen/outlook_1_12/outlook/office.body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,32 +376,6 @@ methods:
links, specify `Office.CoercionType.Html` in the `getAsync` call.
Otherwise, you may receive an unexpected value, such as an empty string.


#### Examples


```TypeScript

// This example gets the body of the item as plain text.

Office.context.mailbox.item.body.getAsync(
"text",
{ asyncContext: "This is passed to the callback" },
function callback(result) {
// Do something with the result.
});

// The following is an example of the result parameter passed to the
callback function.

{
"value": "TEXT of whole body (including threads below)",
"status": "succeeded",
"asyncContext": "This is passed to the callback"
}

```

isPreview: false
isDeprecated: false
syntax:
Expand Down
26 changes: 0 additions & 26 deletions docs/docs-ref-autogen/outlook_1_13/outlook/office.body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,32 +376,6 @@ methods:
links, specify `Office.CoercionType.Html` in the `getAsync` call.
Otherwise, you may receive an unexpected value, such as an empty string.


#### Examples


```TypeScript

// This example gets the body of the item as plain text.

Office.context.mailbox.item.body.getAsync(
"text",
{ asyncContext: "This is passed to the callback" },
function callback(result) {
// Do something with the result.
});

// The following is an example of the result parameter passed to the
callback function.

{
"value": "TEXT of whole body (including threads below)",
"status": "succeeded",
"asyncContext": "This is passed to the callback"
}

```

isPreview: false
isDeprecated: false
syntax:
Expand Down
26 changes: 0 additions & 26 deletions docs/docs-ref-autogen/outlook_1_14/outlook/office.body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,32 +376,6 @@ methods:
links, specify `Office.CoercionType.Html` in the `getAsync` call.
Otherwise, you may receive an unexpected value, such as an empty string.


#### Examples


```TypeScript

// This example gets the body of the item as plain text.

Office.context.mailbox.item.body.getAsync(
"text",
{ asyncContext: "This is passed to the callback" },
function callback(result) {
// Do something with the result.
});

// The following is an example of the result parameter passed to the
callback function.

{
"value": "TEXT of whole body (including threads below)",
"status": "succeeded",
"asyncContext": "This is passed to the callback"
}

```

isPreview: false
isDeprecated: false
syntax:
Expand Down
26 changes: 0 additions & 26 deletions docs/docs-ref-autogen/outlook_1_15/outlook/office.body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,32 +376,6 @@ methods:
links, specify `Office.CoercionType.Html` in the `getAsync` call.
Otherwise, you may receive an unexpected value, such as an empty string.


#### Examples


```TypeScript

// This example gets the body of the item as plain text.

Office.context.mailbox.item.body.getAsync(
"text",
{ asyncContext: "This is passed to the callback" },
function callback(result) {
// Do something with the result.
});

// The following is an example of the result parameter passed to the
callback function.

{
"value": "TEXT of whole body (including threads below)",
"status": "succeeded",
"asyncContext": "This is passed to the callback"
}

```

isPreview: false
isDeprecated: false
syntax:
Expand Down
26 changes: 0 additions & 26 deletions docs/docs-ref-autogen/outlook_1_3/outlook/office.body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,32 +119,6 @@ methods:
links, specify `Office.CoercionType.Html` in the `getAsync` call.
Otherwise, you may receive an unexpected value, such as an empty string.


#### Examples


```TypeScript

// This example gets the body of the item as plain text.

Office.context.mailbox.item.body.getAsync(
"text",
{ asyncContext: "This is passed to the callback" },
function callback(result) {
// Do something with the result.
});

// The following is an example of the result parameter passed to the
callback function.

{
"value": "TEXT of whole body (including threads below)",
"status": "succeeded",
"asyncContext": "This is passed to the callback"
}

```

isPreview: false
isDeprecated: false
syntax:
Expand Down
26 changes: 0 additions & 26 deletions docs/docs-ref-autogen/outlook_1_4/outlook/office.body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,32 +119,6 @@ methods:
links, specify `Office.CoercionType.Html` in the `getAsync` call.
Otherwise, you may receive an unexpected value, such as an empty string.


#### Examples


```TypeScript

// This example gets the body of the item as plain text.

Office.context.mailbox.item.body.getAsync(
"text",
{ asyncContext: "This is passed to the callback" },
function callback(result) {
// Do something with the result.
});

// The following is an example of the result parameter passed to the
callback function.

{
"value": "TEXT of whole body (including threads below)",
"status": "succeeded",
"asyncContext": "This is passed to the callback"
}

```

isPreview: false
isDeprecated: false
syntax:
Expand Down
26 changes: 0 additions & 26 deletions docs/docs-ref-autogen/outlook_1_5/outlook/office.body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,32 +119,6 @@ methods:
links, specify `Office.CoercionType.Html` in the `getAsync` call.
Otherwise, you may receive an unexpected value, such as an empty string.


#### Examples


```TypeScript

// This example gets the body of the item as plain text.

Office.context.mailbox.item.body.getAsync(
"text",
{ asyncContext: "This is passed to the callback" },
function callback(result) {
// Do something with the result.
});

// The following is an example of the result parameter passed to the
callback function.

{
"value": "TEXT of whole body (including threads below)",
"status": "succeeded",
"asyncContext": "This is passed to the callback"
}

```

isPreview: false
isDeprecated: false
syntax:
Expand Down
26 changes: 0 additions & 26 deletions docs/docs-ref-autogen/outlook_1_6/outlook/office.body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,32 +119,6 @@ methods:
links, specify `Office.CoercionType.Html` in the `getAsync` call.
Otherwise, you may receive an unexpected value, such as an empty string.


#### Examples


```TypeScript

// This example gets the body of the item as plain text.

Office.context.mailbox.item.body.getAsync(
"text",
{ asyncContext: "This is passed to the callback" },
function callback(result) {
// Do something with the result.
});

// The following is an example of the result parameter passed to the
callback function.

{
"value": "TEXT of whole body (including threads below)",
"status": "succeeded",
"asyncContext": "This is passed to the callback"
}

```

isPreview: false
isDeprecated: false
syntax:
Expand Down
Loading