---
schema_version: "1"
id: 2d5a76a36e59bb41a5608ec054018e086d92908503610352bd39cc98a4b48644
title: Populate Elements (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_populate_elements.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_populate_elements.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9159c987a5b588ee34f286f370b71da16d0b68f1d3e6e3cbf7e86d28dfa7e633
description: 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.
products:
  - Omnistudio
release: "264"
---
# Populate Elements (Managed Package)

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.

![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).

For example, suppose a Set Values action has an **Element Value Map** that assigns an **Element Name** of `FirstName` with a **Value** of `John`. A subsequent Text element with a **Name** of `FirstName` populates with the value `John`.

![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

When populating an element using Set Values, data types must match. For example, you cannot set a Text element with a value from a Number element.

To populate an element using Set Values:

1. Add a Set Values action to the Omniscript.
2. In the Set Values Properties, click **Add New Element Value**.
3. In the **Element Value Map**, in the **Element Name** field, enter the name of an input element in a subsequent Step element.
    
    ![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
    
    When the Element Name maps to an existing element in the Omniscript, the element's Type appears between the Element Name field and the Value field.
    
    For example, suppose the subsequent Step element has Text elements named `FirstName` and `LastName`, a Number element named `Age`, and a Date element named `Date`.
4. In the **Element Value Map**, in the **Value** field, enter a literal value, a formula, or the name of another JSON node using merge syntax.
    
    For example:
    
    | Element Name | Value |
    | --- | --- |
    | FirstName | "John" |
    | LastName | %LastNameHTTPResponse% |
    | Age | %AgeParameter% |
    | Date | \=TODAY() |
5. Preview the Omniscript to ensure the fields populate correctly.
    
    For example, here's how the subsequent Step element might look in Preview, with the FirstName, LastName, Age, and Date fields populated:
    
    ![image](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/os_set_values_populating.png)