---
schema_version: "1"
id: 9d45e813da6b758421bf38afddff2d4806351c096174f181d05c9ba2f7f27e56
title: Set Values in an Omniscript (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_set_values_in_an_omniscript.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_set_values_in_an_omniscript.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 5e258f93c6aa6c7846dbde9b87add158bd4a3f473b82cd474e5d0e0b6bd87cf9
description: For the managed package runtime, use the Set Values action to set element values in subsequent steps, rename JSON nodes, create dynamic values, and concatenate data. Set Values actions use merge fields to access JSON data in other Omniscript elements.
products:
  - Omnistudio
release: "264"
---
# Set Values in an Omniscript (Managed Package)

For the managed package runtime, use the Set Values action to set element values in subsequent steps, rename JSON nodes, create dynamic values, and concatenate data. Set Values actions use merge fields to access JSON data in other Omniscript elements.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

Action elements either render as a button when in a step or run remotely when between steps. Set Values actions are usually between steps.

Use the Set Values action to:

- Access and rename JSON data in other Omniscript elements by using merge fields
- Populate subsequent elements with values
- Concatenate values
- Set values sent into the JSON data from a response or parameter
- Use [Omniscript Functions](https://help.salesforce.com/s/articleView?id=xcloud.os_omniscript_functions.htm&release=264.0.0&type=5 "For the managed package runtime, you can add functions to the Aggregate and Formula elements in Omniscripts.") and [Supported Formula Operators](https://help.salesforce.com/s/articleView?id=xcloud.os_supported_formula_operators.htm&release=264.0.0&type=5 "For the managed package runtime, formula fields in Omniscript support the following operators:") to set values

Don’t use the Set Values action to:

- Transform data
- Relabel incoming JSON data

Instead, use Integration Procedures and Omnistudio Data Mappers.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_note.png)

Note

Any text between two percent (%) signs in a Set Values formula is treated as a [merge field](https://help.salesforce.com/s/articleView?id=xcloud.os_access_omniscript_data_json_with_merge_fields.htm&release=264.0.0&type=5 "For the managed package runtime, enable Omniscript elements and element properties to access data JSON using merge fields. A merge field is a variable that references the value of a JSON node. For example, if a JSON node is \"FirstName\": \"John\", then the merge field %FirstName% returns John."). To represent literal percent (%) signs, use the `$Vlocity.Percent` [environment variable](https://help.salesforce.com/s/articleView?id=xcloud.os_environment_variables_in_dataraptors_and_integration_procedures_1.htm&release=264.0.0&type=5 "For the managed package runtime, you can use environment variables to define Default Values and Filter Values, and in Formulas.").

The Set Values action doesn’t support custom labels.

Download this [datapack](https://volt.my.salesforce.com/sfc/p/o0000000IKm8/a/Qg000000tJ3d/YQ.7aoALcCNr078_.cmp5n9VlpV_xXp3vqNre.EsTfw) and test the behaviors the examples on the following pages provide.

- **[Rename Data JSON Nodes (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_rename_data_json_nodes.htm&release=264.0.0&type=5)**  
    For the managed package runtime, simplify and rename JSON node names by accessing the values in an Omniscript's data JSON. Access data sent into the Omniscript's data JSON from a parameter, an action's response data, or an element using merge fields.
- **[Populate Elements (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_populate_elements.htm&release=264.0.0&type=5)**  
    For the managed package runtime, populate subsequent input elements with values from data JSON, formula operators, functions, concatenations, and static values. Prefill an element directly from an Omnistudio Data Mapper or Action response whenever possible. When a previous element assigns a value to a subsequent input element's Name, the subsequent input element is populated with the assigned value.
- **[Concatenate Values (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_concatenate_values.htm&release=264.0.0&type=5)**  
    For the managed package runtime, create dynamic values by concatenating JSON node values.
- **[Set Data with Formulas and Functions (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_set_data_with_formulas_and_functions.htm&release=264.0.0&type=5)**  
    For the managed package runtime, generate dynamic values by evaluating data with Formulas and using functions to return specific values.
- **[Set and Access Nested Data (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_set_and_access_nested_data.htm&release=264.0.0&type=5)**  
    For the managed package runtime, set and access nested data by editing the Set Values JSON directly and using specific syntax.