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

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

## Parameters

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

## Returns

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

## Deprecated

Use getCollectionActionDetails instead.
