---
schema_version: "1"
id: 345ff170340c4b5063aa52819a7f9e4c7a48c76fd6058d90598ea5217d5690aa
title: FlowValueMap
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_flowvaluemap.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_flowvaluemap.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7e391a7dd1c0dc6d0ba67ba36f3b6ad12592672d209a16746b71c69bcc448df9
description: Represents the metadata associated with creating a reusable entity for defining and managing mappings between source and target values used within a flow.
---
# FlowValueMap

Represents the metadata associated with creating a reusable entity for defining and managing mappings between source and target values used within a flow.

## Parent Type

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/metadata.htm) metadata type and inherits its fullName field.

## File Suffix and Directory Location

FlowValueMap components have the suffix .flowvaluemap and are stored in the flowvaluemaps folder.

## Version

FlowValueMap components are available in API version 66.0 and later.

## Special Access Rules

Only authenticated users can access this metadata type.

## Fields

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d524736e104">Field Name</th>

              <th class="featureTableHeader  " id="d524736e107">Field Type</th>

              <th class="featureTableHeader  " id="d524736e110">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d524736e104" data-title="Field Name"><span class="keyword parmname">defaultValue</span></td>

              <td class="entry" headers="d524736e107" data-title="Field Type">text</td>

              <td class="entry" headers="d524736e110" data-title="Description">Specifies the default target value used when no source value is found in the
                value map. <p class="p">A value is required if the <span class="keyword parmname">defaultValueStrategy</span>
                  field is set to <span class="keyword parmname">FixedValue</span>. </p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d524736e104" data-title="Field Name"><span class="keyword parmname">defaultValueStrategy</span></td>

              <td class="entry" headers="d524736e107" data-title="Field Type">
                <p dir="ltr" class="p">FlowValueMapDefaultStrategy (enumeration of type string)</p>

              </td>

              <td class="entry" headers="d524736e110" data-title="Description">Required. Specifies the strategy used to apply the default target value if the
                source value is not found in the value map. Valid values are:<a name="ul_zj3_54n_kjc"><!-- --></a>
                <ul class="ul bulletList" id="ul_zj3_54n_kjc">
                  <li class="li">
                    <span class="keyword parmname">PassThrough</span>: Pass the original source value through if no
                    mapping is found.
                  </li>

                  <li class="li">
                    <span class="keyword parmname">FixedValue</span>: Use the defined DefaultValue if no mapping is
                    found.
                  </li>

                  <li class="li">
                    <span class="keyword parmname">FailFlow</span>: Fail the flow if no mapping is found.
                  </li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d524736e104" data-title="Field Name"><span class="keyword parmname">description</span></td>

              <td class="entry" headers="d524736e107" data-title="Field Type">text</td>

              <td class="entry" headers="d524736e110" data-title="Description">User-provided description for the value map.</td>

            </tr>

            <tr>
              <td class="entry" headers="d524736e104" data-title="Field Name"><span class="keyword parmname">label</span></td>

              <td class="entry" headers="d524736e107" data-title="Field Type">text</td>

              <td class="entry" headers="d524736e110" data-title="Description">Required. Label for the value map.</td>

            </tr>

            <tr>
              <td class="entry" headers="d524736e104" data-title="Field Name"><span class="keyword parmname">sourceType</span></td>

              <td class="entry" headers="d524736e107" data-title="Field Type">FlowValueMapDataType (enumeration of type string)</td>

              <td class="entry" headers="d524736e110" data-title="Description">Required. Specifies the supported data types for value map source data. Valid
                types are:<a name="ul_qjm_z4n_kjc"><!-- --></a>
                <ul class="ul bulletList" id="ul_qjm_z4n_kjc">
                  <li class="li"><span class="keyword parmname">Boolean</span></li>

                  <li class="li"><span class="keyword parmname">Date</span></li>

                  <li class="li"><span class="keyword parmname">DateTime</span></li>

                  <li class="li"><span class="keyword parmname">Number</span></li>

                  <li class="li"><span class="keyword parmname">String</span></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d524736e104" data-title="Field Name"><span class="keyword parmname">targetType</span></td>

              <td class="entry" headers="d524736e107" data-title="Field Type">FlowValueMapDataType (enumeration of type string)</td>

              <td class="entry" headers="d524736e110" data-title="Description">Required. Specifies the supported data types for value map target data. Valid
                types are:<a name="ul_xjk_dpn_kjc"><!-- --></a>
                <ul class="ul bulletList" id="ul_xjk_dpn_kjc">
                  <li class="li"><span class="keyword parmname">Boolean</span></li>

                  <li class="li"><span class="keyword parmname">Date</span></li>

                  <li class="li"><span class="keyword parmname">DateTime</span></li>

                  <li class="li"><span class="keyword parmname">Number</span></li>

                  <li class="li"><span class="keyword parmname">String</span></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d524736e104" data-title="Field Name"><span class="keyword parmname">valueMapEntries</span></td>

              <td class="entry" headers="d524736e107" data-title="Field Type">
                <a class="xref" href="#FlowValueMapEntry">FlowValueMapEntry</a>[]
              </td>

              <td class="entry" headers="d524736e110" data-title="Description">List of source-target mappings in the value map. </td>

            </tr>

          </tbody>

        </table>

## FlowValueMapEntry

Stores an individual record linking a specific source value to a target value. This entity maintains a relationship to its parent FlowValueMap definition and makes sure that each sourceValue is unique within that parent definition.

| Field Name | Field Type | Description |
| --- | --- | --- |
| sourceValue | text | Required. Specifies the source value in this FlowValueMap definition. |
| targetValue | text | Required. Specifies the target value in this FlowValueMap definition. |

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm).