# CustomFunctionContext.sheetId Property

> CustomFunctionContext.sheetId property in the TX Sheet Control TypeScript API for Node.js, with its type string and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > CustomFunctionContext > CustomFunctionContext.sheetId Property
- **382 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/sheetid-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/sheetid-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/sheetid-property/llms-full.txt

---

The sheetId value of CustomFunctionContext.

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

### Syntax

```typescript
sheetId: string
```

Read through the owning object: `owner.sheetId`. Follow the declared mutability and owning object lifetime.

### Examples

Pass the CustomFunctionContext 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 inspectCustomFunctionContextSheetId(
    customFunctionContext: Parameters<
        Parameters<ServerSheetControl['workbook']['calculation']['registerFunction']>[1]['evaluate']
    >[1],
) {
    const value = customFunctionContext['sheetId'];
    console.log('CustomFunctionContext.sheetId', value);
}
```

### 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

- [CustomFunctionContext Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/llms-full.txt)
- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)

---

## Nearby

- **Previous:** [CustomFunctionContext.address Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/address-property/llms-full.txt)
- **Next:** [CustomFunctionContext.signal Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/signal-property/llms-full.txt)
