---
schema_version: "1"
id: ef49c52797293efaf31b97367ce270dc0e5c1ab28f8c84e848120e8a237bb1cd
title: Omniscript Function 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_omniscript_function_elements.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_omniscript_function_elements.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 95df0c4426e3919ccea71003f4cb023b4ab8198ab3443fa072552e005262ff6c
description: For the managed package runtime, this page contains a table explaining the available Omniscript elements listed under the Function section.
products:
  - Omnistudio
release: "264"
---
# Omniscript Function Elements (Managed Package)

For the managed package runtime, this page contains a table explaining the available Omniscript elements listed under the Function section.

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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col>
        <col>
        <col>
        <col>
        <col>
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d232828e49">
            <p style="margin-bottom:0;">Element Name</p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d232828e55">
            <p style="margin-bottom:0;">Element Description</p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d232828e61">
            <p style="margin-bottom:0;">Template</p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d232828e67">
            <p style="margin-bottom:0;">Example</p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d232828e73">
            <p style="margin-bottom:0;">Example Image</p>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Element Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e49 ">
            <p style="margin-bottom:0;">Aggregate</p>
          </td>

          <td data-label="Element Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e55 ">
            <p style="margin-bottom:0;">The Aggregate element provides a variety of functions for aggregation.
              Unlike the Formula component, the Aggregate component expects input in the
              form of an array.</p>
          </td>

          <td data-label="Template" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e61 ">
            <p style="margin-bottom:0;">vlcFormula.html</p>
          </td>

          <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e67 ">
            <p style="margin-bottom:0;">
              <a href="https://help.salesforce.com/s/articleView?id=xcloud.os_create_a_formula_or_aggregate_in_an_omniscript.htm&amp;release=264.0.0&amp;type=5" title="For the managed package runtime, run functions against element data with the Formula and Aggregate elements.">Create a Formula or Aggregate in an Omniscript</a>
            </p>
          </td>

          <td data-label="Example Image" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e73 ">
            <p>Lightning Aggregate:</p>
            <div><img style="width:100px;" src="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_lightning_aggregate.png" alt="image"></div>
            <p>Newport Aggregate:</p>
            <div><img style="width:100px;" src="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_newport_aggregate.png" alt="image"></div>
          </td>

        </tr>
        <tr class="">
          <td data-label="Element Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e49 ">
            <p style="margin-bottom:0;">Formula</p>
          </td>

          <td data-label="Element Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e55 ">
            <p style="margin-bottom:0;">The Formula element performs calculations that require complex
              operations.</p>
          </td>

          <td data-label="Template" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e61 ">
            <p style="margin-bottom:0;">vlcFormula.htm</p>
          </td>

          <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e67 ">
            <p style="margin-bottom:0;">
              <a href="https://help.salesforce.com/s/articleView?id=xcloud.os_create_formula_fields_in_an_omniscript.htm&amp;release=264.0.0&amp;type=5" title="For the managed package runtime, create expressions to set calculated values and evaluate data across multiple fields using a Formula or Aggregate element. For example, if you are accepting information for a qualifying life event you may want to create a formula that determines if the date entered for the qualifying life event is within thirty days of today's date.">Create Formula Fields in an Omniscript</a>
            </p>
          </td>

          <td data-label="Example Image" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e73 ">
            <p>Lightning Formula:</p><a name="os_omniscript_function_elements__uuid-1d1988d2-03c4-4e63-7af9-bbe441ace193-en.png__d42e236222a1310"><!-- --></a>
            <div><img style="width:100px;" id="os_omniscript_function_elements__uuid-1d1988d2-03c4-4e63-7af9-bbe441ace193-en.png__d42e236222a1310" src="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_lightning_formula.png" alt="image"></div>
            <p>Newport Formula:</p>
            <div><img style="width:100px;" src="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_newport_formula.png" alt="image"></div>
          </td>

        </tr>
        <tr class="">
          <td data-label="Element Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e49 ">
            <p style="margin-bottom:0;">Geolocation</p>
          </td>

          <td data-label="Element Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e55 ">
            <p style="margin-bottom:0;">The Geolocation element records the geographical location of a person when
              it is clicked by the User.</p>
          </td>

          <td data-label="Template" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e61 ">
            <p style="margin-bottom:0;">vlcGeolocation.html</p>
          </td>

          <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e67 ">
            <p>Geolocation:</p>
            <div><img style="width:100px;" src="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_newport_geolocation_example.gif" alt="image"></div>
          </td>

          <td data-label="Example Image" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e73 ">
            <p>Lightning Geolocation:</p>
            <div><img style="width:100px;" src="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_lightning_geolocation.png" alt="image"></div>
            <p>Newport Geolocation:</p>
            <div><img style="width:100px;" src="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_newport_geolocation.png" alt="image"></div>
          </td>

        </tr>
        <tr class="">
          <td data-label="Element Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e49 ">
            <p style="margin-bottom:0;">Messaging</p>
          </td>

          <td data-label="Element Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e55 ">
            <p style="margin-bottom:0;">The Messaging element displays comments, requirements, success, and warning
              messaging depending on whether the validate expression is true or false.</p>
          </td>

          <td data-label="Template" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e61 ">
            <p style="margin-bottom:0;">vlcValidation.html</p>
          </td>

          <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e67 ">
            <p style="margin-bottom:0;">
              <a href="https://help.salesforce.com/s/articleView?id=xcloud.os_display_messages_in_omniscripts.htm&amp;release=264.0.0&amp;type=5" title="For the managed package runtime, display comments, requirements, and success and warning messaging depending on whether the validate expression returns True or False. Configure the Messaging element after creating an element, such as a formula or aggregate, to display validation messages in the OmniScript. Merge fields are supported in messages.">Display Messaging in Omniscripts</a>
            </p>
          </td>

          <td data-label="Example Image" class="slds-cell-wrap" style="vertical-align:top;" headers="d232828e73 ">
            <p style="margin-bottom:0;">To view the different Message types, see <a href="https://help.salesforce.com/s/articleView?id=xcloud.os_display_messages_in_omniscripts.htm&amp;release=264.0.0&amp;type=5" title="For the managed package runtime, display comments, requirements, and success and warning messaging depending on whether the validate expression returns True or False. Configure the Messaging element after creating an element, such as a formula or aggregate, to display validation messages in the OmniScript. Merge fields are supported in messages.">Displaying Messaging in Omniscripts</a>.</p>
          </td>

        </tr>
      </tbody>
    </table>