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

---
```ts
getAction(program, operation): string | null | undefined
```

## Parameters

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

## Returns

`string` \| `null` \| `undefined`

## Deprecated

Use getActionDetails instead.
