# Get started with transformations

> Write SQL transformations, publish the results as objects in the Rippling data catalog, and reuse them in reports, automations, and apps.

## Overview

Transformations let you write SQL against data in Rippling, then publish the result as a custom, big, or live object. For custom objects you can set refresh behavior, and for live objects you choose whose permissions apply. Once published, that object is available in your data catalog for reports, automations, analytics, and custom apps.

![TransformationsList](https://developer.rippling.com/assets/images/TransformationsList-5b51e6405e37c62f8303e91d27b858bf.png)

> **Note:**
> See [When to use Rippling primitives](https://developer.rippling.com/documentation/rippling-platform/custom-solutions/rippling-primitives) for more information on when to use transformations vs. automations or functions.

* * *

## Requirements

Before you begin, ensure you have:

-   **Transformations access**: Permission to create transformations (**Transformations creator** under **Company Settings** > **Permissions** > **Feature access**). By default, everyone at your company has this access.
-   **Source data**: Objects in the Rippling data model you want to query (including data ingested via pipelines, if applicable).
-   **SQL familiarity**: Enough SQL to write the query you need. See the [SQL Reference Glossary](https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference-glossary) for more details.

For who can view and manage queries vs. resulting objects, see the [Permissions for transformations](https://help.rippling.com/article?articleId=7sZ4RXtMHcX3schOJ01Ub2) Help Center article.

* * *

## How it works

1.  You write a SQL query in the Transformations app.
2.  Rippling validates it against your full dataset. Once validated, you publish the query.
3.  Rippling creates **one object per published transformation** under the category selected during creation.
4.  That custom, live, or big object can power reports, automations, and custom apps throughout Rippling. For more information, see [Rippling object types](https://developer.rippling.com/documentation/rippling-platform/data-model/object-types).

> **Data refresh:**
> Live objects stay current at query time, while big/custom objects refresh nightly, manually, or on a specific schedule. See [Data refresh](https://developer.rippling.com/documentation/rippling-platform/transformations/getting-started#data-refresh) for more details.

* * *

## Use cases

| Use case | When to use it | Typical output |
| --- | --- | --- |
| Clean imported data | Remove fields, obscure sensitive values, or normalize formatting before sharing | Custom or big object |
| Reuse common logic | Same joins/formulas appear in many reports | Transformation referenced by reports or other transformations |
| Aggregate/new fields | Calculations you want across multiple reports | Custom or big object |
| Advanced joins | Need more join flexibility than Reports (e.g., 3+ datasets) | Custom, big, or live object |
| Performance | Large datasets that don’t need real-time freshness | Big object (nightly/scheduled refresh) |
| Real-time views/reporting | Always-current data without storing a copy | Live object |

* * *

## Create and publish a transformation

### Step 1: Create and test the query

1.  From the Rippling sidebar, select **Data** > **Transformations**.
2.  Click **+New transformation**.
3.  Write your SQL query. Refer to the [SQL Reference Glossary](https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference-glossary) for details about the supported functions and required syntax.
4.  To test your query, click **Run** in the top right corner and review the output in the window below the editor.

> **Using the SQL editor:**
> -   The SQL editor is not case sensitive.
> -   Add fields from the left panel, or type the name of the object and a dot (e.g., `Employee.`) and use autocomplete.
> -   Use [SQL syntax](https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference-glossary) for shared SQL/RQL functions and [RQL syntax](https://help.rippling.com/page?page=rql) for RQL-only functions.
> -   Add `LIMIT` while testing long-running queries and remove it before publishing.

**Note for service accounts**:

When you create a transformation, **Run as** appears in the top-left corner if you have access to a service account. Choose which service account the transformation should use.

-   Autocomplete in the SQL editor and the left sidebar catalog show only objects and fields that the service account can access, so you can see what’s available before running the query.
-   When the transformation runs, it uses that service account’s permissions for running, publishing, and refreshing the transformation. It can only read data that account is allowed to see.

You still have to share the transformation with anyone who needs to be able to edit or refresh it, since other members of the service account do not automatically receive this access.

![Service Accounts](https://developer.rippling.com/assets/images/TransformationsService-d9d9ec97275712eb4a3477e5e5a17efc.png)

See [Overview of service accounts](https://help.rippling.com/article?articleId=1QqBme1z73EON77apZGiPn) for more information.

### Step 2: Configure object details

1.  Click **Publish**.
2.  Fill in the fields below, then click **Continue**.

| Field | Purpose |
| --- | --- |
| **Category** | Where the object is grouped in the data catalog |
| **Display name** | Label shown in the catalog |
| **API name** | Identifier for the Rippling API (auto-filled from the display name, must be unique, and **can’t be changed after save**) |
| **SQL name** | Name used when referencing the object in other transformations (max 200 characters and must be unique) |
| **Preview** | Fully qualified SQL path for the object (for example, rippling.class\_schedule.test\_2) |
| **Description** | Optional description |

### Step 3: Choose output type and permissions

1.  Wait for the **validation** to complete, as Rippling runs the query against your full dataset. If it fails, use the error message to fix the query—go **Back** or close the modal and adjust, then try again.
2.  When the transformation passes validation, click **Continue**.
3.  Choose an object output type. For more details, see [Rippling object types](https://developer.rippling.com/documentation/rippling-platform/data-model/object-types).

| Object type | What it does |
| --- | --- |
| **Custom object** | Stores the result in Rippling for use across the product (e.g. App Studio, Automation Studio, reports, dashboards). Best when you need broad reuse. Custom objects can’t exceed 1 million rows or include List, Variant, or JSON — see [Limitations](https://developer.rippling.com/documentation/rippling-platform/transformations/getting-started#limitations) for more information. |
| **Big object** | Stores pre-calculated values (typically refreshed nightly). Best for large analytics workloads that don’t need real-time data. Limited to reports, dashboards, and other transformations. |
| **Live object** | Does **not** store data in Rippling—queries at access time so results stay current. Limited to reports, dashboards, and other transformations. |

#### Object types

![Transformation object types](https://developer.rippling.com/assets/images/TransformationObjectTypes-85247fc01e4ebbcc9bc1ee7c2755faca.png)

4.  When you publish a transformation as a **custom** or **big object**, the data is queried once and then stored in Rippling. Your permissions determine how the data is populated in the object. When you publish a transformation as a **live object**, the data is not stored in Rippling and is queried each time it’s viewed. For live objects, you can choose whose permissions you want to use when querying the data:

| Option (**live objects only**) | Effect |
| --- | --- |
| **Grant the permissions of \[your name\]** | Uses your permissions for everyone. Viewers see the same data you can— which may be more or less than they usually have. |
| **Check individual permissions** | Uses the permissions of the person running the query. Viewers may see more or less data than you, depending on their access. |

#### Object permissions

![Transformation live object permissions](https://developer.rippling.com/assets/images/TransformationLiveObjectPermissions-898ed10e3e62691e2399cfe1810d24d1.png)

5.  Click **Continue** (custom/big objects may prompt for more settings) or **Publish** if you’re publishing a live object from this screen.

### Step 4: Configure refresh and publish

What you see next depends on the object type and whether your SQL query uses `SELECT *`.

#### Custom objects only

1.  Choose a **deduplication key** - one or more fields that uniquely identify each record (for example, name or email). Rippling uses it to match source rows to existing records so only changed records update on refresh. If multiple rows share the same key, Rippling stores the **first** row returned.
2.  Specify the **refresh behavior**:

| Option | What happens on refresh |
| --- | --- |
| **Keep edited fields** (default) | Keeps manual edits on specific fields and updates all other fields. Retains manually-created records and respects manual removals. |
| **Keep edited records** | Skips any record that has manual edits. Retains manually-created records and respects manual removals. |
| **Overwrite all records** | Resets the object to match the transformation output. Overwrites manual edits, restores manually-removed records, and removes manually-created records. |

#### If the query uses `SELECT *`

1.  Choose how to resolve the `*`:

| Option | Behavior |
| --- | --- |
| **Expand SELECT \*** | Replaces `*` with the full field list. On refresh, that field list stays the same. |
| **Keep SELECT \*** | Leaves `*` in the query. On refresh, fields follow the source object (fields can be added or removed). |

#### SELECT \*

![Transformation SELECT *](https://developer.rippling.com/assets/images/TransformationSelectStar-3efbfbb760d1b40c49a85d8c0129994c.png)

#### Publish

3.  Click **Publish**, or **Publish and create report** to create a report prefilled with fields from the new object.

The transformation is now saved as a new object. Grant access in the Object Permissions app via a permission profile. For more information, see [Object permissions](https://developer.rippling.com/documentation/rippling-platform/data-model/object-permissions).

* * *

## Reference

### Limitations

| Limitation | Detail |
| --- | --- |
| **Custom object row limit** | It is not recommended to go over **1 million rows**. |
| **Unsupported types (custom object)** | You can’t publish as a custom object if the result includes **List**, **Variant**, or **JSON** fields. |
| **Lookup fields** | If a lookup value is an invalid reference (for example, an employee ID that doesn’t exist), the refresh will fail. |

### Data refresh

**Big** and **custom** objects refresh in these ways:

| Method | How it works |
| --- | --- |
| **Nightly refresh** | All transformation queries re-run nightly, and stored data is repopulated from the results. |
| **Manual refresh** | On the transformation’s detail page, click **Refresh data**. If the query references other transformations, choose: refresh **only this** transformation, or refresh **this and upstream** transformations (its dependencies). |
| **Refresh schedules** | Schedule one or more transformations from the **Refresh schedules** tab in the Transformations app. See [Refresh transformations](https://developer.rippling.com/documentation/rippling-platform/transformations/refresh-schedules) for more information. |
| **Automation step** | Refresh a transformation on-demand using an automation step. See [Refresh transformations](https://developer.rippling.com/documentation/rippling-platform/transformations/refresh-schedules) for more information. |

### Editing custom objects from transformations

Custom objects published from transformations can be edited in Rippling (add/edit/remove records; with manage permissions, schema changes). Refresh behavior controls whether those edits survive the next refresh. Prefer maintaining fields in the transformation SQL. For permissions and field/record editing details, see [Object permissions](https://developer.rippling.com/documentation/rippling-platform/data-model/object-permissions).

### Review data lineage

Rippling provides a visual representation of your data lineage to surface the relationships and dependencies between your data assets. This allows you to understand where your data comes from and identify the root cause of errors.

In transformations and pipelines, you can access lineage by opening the full details of a given transformation or pipeline, then clicking the **View lineage** icon.

For more information, see [Review data lineage across Rippling](https://developer.rippling.com/documentation/rippling-platform/data-model/data-lineage).

* * *

## See also

-   [SQL Reference Glossary](https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference-glossary)
-   [Rippling object types](https://developer.rippling.com/documentation/rippling-platform/data-model/object-types)
-   [Permissions for transformations](https://help.rippling.com/article?articleId=7sZ4RXtMHcX3schOJ01Ub2)
-   [Object permissions](https://developer.rippling.com/documentation/rippling-platform/data-model/object-permissions)
-   [Overview of service accounts](https://help.rippling.com/article?articleId=1QqBme1z73EON77apZGiPn)

Source: https://developer.rippling.com/documentation/rippling-platform/transformations/getting-started

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