MailMergeResult.getValue Method
The getValue operation of MailMergeResult.
Owner: MailMergeResult. Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.
Syntax
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.
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';
function inspectMailMergeResultGetValue(
mailMergeResult: Awaited<
Awaited<ReturnType<Awaited<ReturnType<ServerSheetControl['workbook']['createMailMergeTemplate']>>['merge']>>
>,
) {
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.