# MailMergeResult Interface

> MailMergeResult interface in the TX Sheet Control TypeScript API for Node.js: A merged document plus diagnostics and the resulting repeated ranges.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > MailMergeResult Interface
- **518 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergeresult/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergeresult/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergeresult/llms-full.txt

---

A merged document plus diagnostics and the resulting repeated ranges; the original template remains reusable.

Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Members

#### Properties

| Property | Description |
|---|---|
| [formulaErrors](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergeresult/formulaerrors-property/llms-full.txt) | The formulaErrors value of MailMergeResult. |
| [repeatRanges](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergeresult/repeatranges-property/llms-full.txt) | The repeatRanges value of MailMergeResult. |
| [warnings](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergeresult/warnings-property/llms-full.txt) | The warnings value of MailMergeResult. |
| [workbook](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergeresult/workbook-property/llms-full.txt) | The workbook value of MailMergeResult. |

#### Methods

| Method | Description |
|---|---|
| [getValue](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergeresult/getvalue-method/llms-full.txt) | The getValue operation of MailMergeResult. |

### Examples

Pass the MailMergeResult value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

```typescript
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';

function inspectMailMergeResultWorkbook(
    mailMergeResult: Awaited<
        Awaited<ReturnType<Awaited<ReturnType<ServerSheetControl['workbook']['createMailMergeTemplate']>>['merge']>>
    >,
) {
    const value = mailMergeResult['workbook'];
    console.log('MailMergeResult.workbook', value);
}
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Mail Merge With JSON](https://docs.textcontrol.com/tx-sheet-control/mail-merge/overview/llms-full.txt)

---

## In This Section

- [MailMergeResult.formulaErrors Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergeresult/formulaerrors-property/llms-full.txt): MailMergeResult.formulaErrors property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [MailMergeResult.getValue Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergeresult/getvalue-method/llms-full.txt): MailMergeResult.getValue method in the TX Sheet Control TypeScript API for Node.js, with the return type CellValue and a TypeScript example.
- [MailMergeResult.repeatRanges Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergeresult/repeatranges-property/llms-full.txt): MailMergeResult.repeatRanges property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [MailMergeResult.warnings Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergeresult/warnings-property/llms-full.txt): MailMergeResult.warnings property in the TX Sheet Control TypeScript API for Node.js, with its type string[] and a TypeScript example.
- [MailMergeResult.workbook Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergeresult/workbook-property/llms-full.txt): MailMergeResult.workbook property in the TX Sheet Control TypeScript API for Node.js, with its type Workbook and a TypeScript example.

---

## Nearby

- **Previous:** [MailMergeRepeatBlock.templateRange Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergerepeatblock/templaterange-property/llms-full.txt)
- **Next:** [MailMergeResult.formulaErrors Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mailmergeresult/formulaerrors-property/llms-full.txt)
