# MailMergeResult.getValue Method

> MailMergeResult.getValue method in the TX Sheet Control TypeScript API for the browser, with the return type CellValue and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > MailMergeResult > MailMergeResult.getValue Method
- **454 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mailmergeresult/getvalue-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mailmergeresult/getvalue-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mailmergeresult/getvalue-method/llms-full.txt

---

The getValue operation of MailMergeResult.

Owner: [MailMergeResult](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mailmergeresult/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

### Syntax

```typescript
getValue(sheetId: string, address: string): CellValue
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `sheetId` | `string` | No | Value matching sheetId's declared type and the owning object's validation rules. |
| `address` | `string` | No | A1 cell address on the owning worksheet. |

### Return Value

`CellValue`.

### Examples

Pass an existing MailMergeResult from the owning document. Related handles and input bytes must belong to the intended document and application; the function applies the operation and inspects its result.

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

function inspectMailMergeResultGetValue(mailMergeResult: MailMergeResult) {
    const result = mailMergeResult['getValue']('sales-sheet', 'B8');
    console.log(result);
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [MailMergeResult Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mailmergeresult/llms-full.txt)
- [Mail Merge With JSON](https://docs.textcontrol.com/tx-sheet-control/mail-merge/overview/llms-full.txt)
- [CellValue Type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellvalue/llms-full.txt)

---

## Nearby

- **Previous:** [MailMergeResult.formulaErrors Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mailmergeresult/formulaerrors-property/llms-full.txt)
- **Next:** [MailMergeResult.repeatRanges Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mailmergeresult/repeatranges-property/llms-full.txt)
