--- title: "Apply mapping variable (Field option)" slug: "apply-mapping-variable-field-option" description: "Learn how to use mapping variables during a message run to store and retrieve values effectively in your integration design." tags: ["Task topic"] updated: 2026-08-24T08:40:33Z published: 2026-08-24T08:40:33Z canonical: "docs.staedean.com/apply-mapping-variable-field-option" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.staedean.com/llms.txt > Use this file to discover all available pages before exploring further. # Apply mapping variable (Field option) During a message run, you can use [mapping variables](/data-management/docs/create-mapping-variables) to temporary store values. You can write (calculated) values to a mapping variable, and later during the message run, read the value from the mapping variable. You can use mapping variables across records. The mapping variable values are only stored during the message run. When the message run is finished, the mapping variable values are deleted. During a message run, to read a mapping variable, on a field mapping, define the target field to be filled with the mapping variable value. Instead of a source field, use the '**Variable**' field option to define the mapping variable which value must be used to set the target field value. ### Steps 1. Click **Connectivity** **studio - Integration Design**. 2. On the **Message** tab, in the list, find and select the desired message. 3. Click **Edit**. 4. In the **Mapping** section, in the **Target record** pane, in the list, find and select the desired target record. 5. On the **Mapping** tab, on the **Field mapping** tab, in the list, find and select the desired field mapping. 6. Click the **Field options** tab. 7. Select the **Variable** check box. > [!NOTE] > **Note** > > This check box is available only if a mapping variable is created for the message. If you have created a mapping variable, but the **Variable** field is not shown, refresh the page. 8. Click the **Variables** tab. 9. Define which mapping variable is used to set the target field value. In the **Source variable** field, enter or select a value. 10. Close the page. ## Related - [Create mapping variables](/create-mapping-variables.md)