---
jsApi: true
title: "[F] getOperationId"

---
```ts
getOperationId(program, entity): string | undefined
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `entity` | `Operation` |

## Returns

`string` \| `undefined`

operationId set via the

## Operation Id

decorator or `undefined`
