---
schema_version: "1"
id: f203ad11bd07e230e37e10158f66e6ed2be4c6b108bca2fb887c7a87afa53800
title: Preview the Output of a Transformation (Anypoint Studio)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/mule-runtime/4.11/transform-preview-transformation-output-studio-task.md
canonical_url: https://docs.mulesoft.com/mule-runtime/4.11/transform-preview-transformation-output-studio-task
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 3c6b1d5f95c42a985cc6a40448f356013e5e9af21911d6da2407597d6083cb9e
description: MuleSoft Documentation Site
release: "4.11"
latest: false
---
---
product: Mule Runtime
version: 4.11
---

# Preview the Output of a Transformation (Anypoint Studio)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

You can provide sample input data to your Transform Message component to see how the transformation
affects it. You don’t need to deploy your project to use this feature. A sample output is updated in
real time as you make changes both to the sample input and the transformation.

1.  Click on the root of the input pane and select **Edit Sample Data**.

    ![Edit sample data in a Transform Message tab in Anypoint Studio](/mulesoft/current/en-us/mule-runtime/4.11/_images/dataweave-edit-sample-data.png)

    A new tab opens with an empty scaffolding of your input structure. Values are populated with the
    string `????` as a placeholder.

    > [!NOTE] When the input is of type POJO, samples must be written in DataWeave format. This is
    > not a transformation in itself, just a way to express how data is structured.

2.  Replace placeholder values with sample values to see how they are mapped out to the preview
    pane.

    ![A JSON scaffolding in a payload tab](/mulesoft/current/en-us/mule-runtime/4.11/_images/dw-populate-sample-data.png)

    > [!TIP] To reset the sample to the original scaffolding with placeholders, click the
    > **rescaffold button** ![Rescaffold icon](/mulesoft/current/en-us/mule-runtime/4.11/_images/dw-rescaffold-button.png). Note that any
    > sample data you provided is lost.

3.  Enable the preview pane by clicking on the **Preview** button on the top-right of the editor.

    As you make changes in the DataWeave code or your sample data, notice how the output data
    structure changes.

    > [!NOTE] If your transformer has multiple outputs (for example, to both the payload and a
    > variable), the **Preview** pane displays the one corresponding to the currently selected
    > transformation.

4.  Test your transformation for any special characters or structures that might arrive, verify that
    the output is what you expected.

    > [!NOTE] Note that samples defined in this pane work only within the **Transform Message**
    > component, they don’t alter the metadata that’s propagated to other components in the flow,
    > and their values aren’t propagated onwards. They aren’t used in your running application as
    > default values nor in any other way.

## See Also

[Workflow: Create a Mapping](https://docs.mulesoft.com/mule-runtime/4.11/transform-workflow-create-mapping-ui-studio)

[Transform Message Component](https://docs.mulesoft.com/mule-runtime/4.11/transform-component-about)

[DataWeave Language](https://docs.mulesoft.com/mule-runtime/4.11/dataweave)
