---
schema_version: "1"
id: 844de9a818c8b0d9ee912c23a532a529bded4f714fbb799f64abdb12d5358648
title: Formulas and Functions (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_formulas_and_functions_1.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_formulas_and_functions_1.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 1fc8845c4631dee5757de163bdee069815fe086e658d92f11b085ae93417f83f
description: For the managed package runtime, the Expression Engine is an APEX-based formula builder used across multiple areas in Omnistudio, including Omniscripts, Omnistudio Data Mappers, and Integration Procedures. Underwriting and Eligibility Rules also use the formula builder. These rules require a server call following a state change or request.
products:
  - Omnistudio
release: "264"
---
# Formulas and Functions (Managed Package)

For the managed package runtime, the Expression Engine is an APEX-based formula builder used across multiple areas in Omnistudio, including Omniscripts, Omnistudio Data Mappers, and Integration Procedures. Underwriting and Eligibility Rules also use the formula builder. These rules require a server call following a state change or request.

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

The Omniscript formula builder and attribute rules use a client-side JavaScript expression engine that is evaluated in the browser and allows for fast, real-time applications.

For more information on the syntax of the Omniscript formula builder, see [Creating Formula Fields in an Omniscript](https://help.salesforce.com/s/articleView?id=xcloud.os_create_formula_fields_in_an_omniscript.htm&release=264.0.0&type=5 "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.").

- **[Formula Overview (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_formula_overview.htm&release=264.0.0&type=5)**  
    For the managed package runtime, the formula builder that is available in Omnistudio Data Mappers and Integration Procedures, and in Vlocity Intelligence, eligibility rules, underwriting rules, state rules, and calculation procedures enables you to use functions to define calculations required by your business logic.
- **[Use Formulas in Omnistudio Data Mappers (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_use_formulas_in_dataraptors_1.htm&release=264.0.0&type=5)**  
    For the managed package runtime, to add data to the output of a Data Mapper, define _formulas_. Several types of Data Mappers (Extract, Transform, and Load) support formulas. When you define a formula, you map its output to the output JSON (for extracts and transforms) or Salesforce object field (for loads).
- **[Formula Syntax for Insurance Rules (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_formula_syntax_for_insurance_rules.htm&release=264.0.0&type=5)**  
    For the managed package runtime, you use formulas when you Create Eligibility Rules, Create Underwriting Rules, or Create State Transition Rules. See Using the Expression Engine for more information. Formulas for insurance rules must return TRUE or FALSE.
- **[Function Reference (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_function_reference.htm&release=264.0.0&type=5)**  
    For the managed package runtime, use these operators and functions in Omnistudio Data Mappers and Integration Procedures, and in Vlocity Intelligence, eligibility rules, underwriting rules, state rules, and calculation procedures.
- **[Workflow for Creating Custom Functions (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_workflow_for_creating_custom_functions.htm&release=264.0.0&type=5)**  
    For the managed package runtime, you can add custom functions for use in formulas using Apex.