---
schema_version: "1"
id: b4a690afc0f6d8a7301e3f9526ffbaffd68d6ba15a705d893f76dffdb4427b30
title: Output a Transformation to an Attribute or Variable (Design Center)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/mule-runtime/latest/transform-to-change-target-output-design-center.md
canonical_url: https://docs.mulesoft.com/mule-runtime/latest/transform-to-change-target-output-design-center
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 82bc896ecbce780609a6a6ba4fb166d9038c397c33104c1d4c27d08b5dcd3b41
description: MuleSoft Documentation Site
release: "4.13"
latest: true
---
---
product: Mule Runtime
version: 4.13
is-latest-version: true
---

# Output a Transformation to an Attribute or Variable (Design Center)

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

By default, the Transform component outputs to the payload of a Mule event. You can also output data
to a variable or attribute that you create.

Before you begin, you should set up a basic flow that sends the Transform component Input data.

1.  From the Mapping tab in the Transform component, click the title of the Output column, which
    should say Output Payload by default.

2.  Select Add Transformation.

3.  Select one of these types:

    - Attributes

    - Variable

4.  For a variable, provide a name.

5.  Create or select a data type for the attribute or variable.

6.  Map the portion of the Transformer input that you want to output to the attribute or variable.

    Note that you can check your mapping by adding a Logger after the Transformer, for example:

    - Logger message for an attribute: `message.attributes`

    - Logger message for the variable `myVar`: `vars.myVar`

      After deploying your app, the Logs should output your logger message.

## Remove an Output Transformation

1.  Click the title of the Output column.

2.  Click the Trash Can icon for the transformation that you want to delete.

## See Also

[Mule Message Structure](https://docs.mulesoft.com/mule-runtime/latest/about-mule-message)

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