---
schema_version: "1"
id: 1aaee0e3080d9f53b3a813915f14ebb352a61994e8c6d86487342a6cb2041700
title: Tie a Picklist to Salesforce (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_tie_a_picklist_to_salesforce.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_tie_a_picklist_to_salesforce.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 73de3b48cee3f2592a72000a0fdfe8797f6773dac2c0b7442e22f490b78f95a5
description: For the managed package runtime, using Vlocity Omniscript, you can dynamically populate a Select, Multi-Select, or Radio element with values from a picklist in your Salesforce org, or using a custom Apex class.
products:
  - Omnistudio
release: "264"
---
# Tie a Picklist to Salesforce (Managed Package)

For the managed package runtime, using Vlocity Omniscript, you can dynamically populate a Select, Multi-Select, or Radio element with values from a picklist in your Salesforce org, or using a custom Apex class.

![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, an update Case Omniscript requires the Status element to dynamically populate based on these values from the **Status** field on the Case object:

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

To do this, select **SObject** as the **Option Source** type and type Case.Status:

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

Now the form will retrieve and dynamically populate the list with values from Case.Status:

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

If the object or field name are custom, they must be preceded with the NameSpace of the package—for example, **vlocity\_cmt\_\_Party\_\_c.vlocity\_cmt\_\_Location\_\_c** or **Case.vlocity\_cmt\_\_Amount\_\_c**.

You can also use a custom class to populate lists in Omniscripts. See the sample code for instructions on implementation.

If the values of the list are [dependent on another field](https://help.salesforce.com/apex/HTViewHelpDoc?id=fields_about_dependent_fields.htm&language=en_US), add the information for that field in the Controlling Field section. Follow the instructions above to define the controlling field and also enter the element name for the field on the form.

#### See Also

- [Access to Data Within and Outside a Repeatable Block (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_evaluating_elements_in_repeatable_blocks.htm&release=264.0.0&type=5 "For the managed package runtime, suppose you place an element in a repeatable block (a Block or an Edit Block) and you want to access data that is calculated in a different element. The method that you use to access the data depends on whether the element containing the data is within or outside the same repeatable block in the Omniscript. Review guidelines and examples for the Formula element and for the Select element, which is used to add a dependent picklist to an Omniscript.")