# defineTransformation

> API reference for defineTransformation: parameters, properties, and return types.

Defines a SQL transformation and its output settings.

```ts
import { defineTransformation } from '@rippling/rippling-sdk';
```

## Properties

| Property | Required | Type | Description |
| --- | --- | --- | --- |
| `apiName` | Required | `string` | — |
| `category` | Required | `` `${string}__c` \| [Category](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/Category-08960fb0) `` | — |
| `friendlyName` | Required | `string` | — |
| `materializationType` | Required | `[TransformationMaterializationType](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/TransformationMaterializationType-190b27b0)` | — |
| `name` | Required | `string` | — |
| `query` | Required | `string` | — |
| `queryDialect` | Required | `"TRINO_SQL"` | — |
| `refreshOverwritePolicy` | Required | `[TransformationRefreshOverwritePolicy](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/TransformationRefreshOverwritePolicy-228385e2)` | — |
| `sourceFqfn` | Required | `string` | Source catalog identity used by the backend when rewriting packaged SQL. |
| `columnDescriptions` | Optional | `Readonly<Record<string, string>>` | — |
| `customObjectApiName` | Optional | `null \| string` | — |
| `description` | Optional | `null \| string` | — |
| `primaryKeyColumns` | Optional | `readonly string[]` | — |
| `upstreamTables` | Optional | `readonly [TransformationUpstreamTable](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/TransformationUpstreamTable-9a5266f6)[]` | — |
| `userDefinedDisplayTypes` | Optional | `Readonly<Record<string, string>>` | — |

[Complete options type](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/DefineTransformationProps-6c1be28a)

TypeScript signature

```ts
defineTransformation(props: DefineTransformationProps): DefinedTransformation;
```

## Returns

```
DefinedTransformation
```

## Availability

| Capability | Support |
| --- | --- |
| Pull into a project | Supported |
| Runtime operations | Not available for this helper |

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/defineTransformation

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
