---
schema_version: "1"
id: 181307a7fc27750fdcc679cb65f32c54b0f8c16c713888b65909520d30a7d0df
title: Graphically Construct a Mapping (Anypoint Studio)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/mule-runtime/4.6/transform-graphically-construct-mapping-studio-task.md
canonical_url: https://docs.mulesoft.com/mule-runtime/4.6/transform-graphically-construct-mapping-studio-task
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 9715ef41ffbb423858348c3d27bb1a33d4426b8df8d5b4e19d75ea44ccb182a7
description: MuleSoft Documentation Site
release: "4.6"
latest: false
---
---
product: Mule Runtime
version: 4.6
---

# Graphically Construct a Mapping (Anypoint Studio)

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

Through the graphical UI of the Transform Message component you can do the tasks below. When doing
each, the necessary lines are added to the DataWeave code to describe the action.

## Map a Field

Drag an element on the input structure over to another on the output structure, this casts a line
that joins them.

![using dataweave in studio 8e6e0](/mulesoft/current/en-us/mule-runtime/4.6/_images/using-dataweave-in-studio-8e6e0.png)

## Map a Structure

Drag a high-level structure that contains lists of elements or inner fields onto another in the
output. This creates a shaded region covering all the mapped structure. Fields that have identical
names in these structures are automatically mapped too.

![using dataweave in studio 6b171](/mulesoft/current/en-us/mule-runtime/4.6/_images/using-dataweave-in-studio-6b171.png)

## Set a Fixed Value or Function

1.  Double click on a field in the output tree. This adds a function icon
    ![using dataweave in studio 66cdc](/mulesoft/current/en-us/mule-runtime/4.6/_images/using-dataweave-in-studio-66cdc.png) next to it.

2.  A new line is added to the DataWeave code that assigns a default `null` value to the field. This
    line is highlighted. Change its value to anything you want.

You can add:

- A fixed string value by using " ".

- A reference to an input field.

- A DataWeave statement that includes functions.

## See Also

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

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

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