---
schema_version: "1"
id: 67eed3cefcb432600dbff825a24264d8e38f3f10039076a0e584d80faedb9d68
title: Omniscript Script Structure Definitions (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_omniscript_script_structure_definitions.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_omniscript_script_structure_definitions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d6d2b02ac8e4590c8e45c7e7e40e6d8cb1231a79d61d737a7ebbb618b60d2285
description: For the managed package runtime, Omniscripts are defined by Administrators directly within the application.
products:
  - Omnistudio
release: "264"
---
# Omniscript Script Structure Definitions (Managed Package)

For the managed package runtime, Omniscripts are defined by Administrators directly within the application.

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

A script is defined through the following declarative, hierarchical structure:

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

- **Script**: The script is the master container for all the controls. Scripts can be versioned, ported to different languages, embedded into parent scripts, exported to other orgs, and activated into production.
- **Step**: A script can contain one or more Steps. The user navigates through the Steps using Next and Previous buttons. Logic to enforce field validation or required fields can be optionally enforced for each Step.
- **Inputs**: Inputs are HTML controls that form the input content of the script.
- **Functions**: Functions enable you to evaluate data, provide messaging, and obtain a User's location.
- **Groups**: Elements can be combined into Groups. For example, street, city, state and postal code input elements may be combined into an address block. Groups are contained within Steps, and may be repeated to capture an array of data.
- **Actions**: Action Elements trigger a variety of user-defined actions including remote or REST to communicate with external sources and Integration Procedure, Omnistudio Data Mapper Extract, or Data Mapper Post to move data between the script and Salesforce objects. Action Elements can be launched as a button on the script or run remotely in between Steps.
- **Display**: Display elements present information to the user.
- **Omniscripts**: An entire Omniscript can be embedded into another script, allowing you to reuse smaller scripts across multiple larger scripts.