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

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.

![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 a list of Omniscript functions, see [Omniscript Functions (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_omniscript_functions.htm&release=264.0.0&type=5 "For the managed package runtime, you can add functions to the Aggregate and Formula elements in Omniscripts.").

## Supported Operators

Formula expressions in Data Mappers and Integration Procedures support the following logical, comparison, string, and mathematical operators. Make sure to include a space before and after an operator.

Mathematical operators take precedence over comparison and string operators, which take precedence over logical operators. Within mathematical operators, `^` and `%` have the highest precedence, followed by `*` and `/`, then `+` and `-`. When precedences are equal, operations are performed from left to right. You can use parentheses, `( )`, to explicitly specify precedence.

For example, this expression:

```
"ABC" LIKE "B" && 44 - 5 * 2 ^ 3 == 4
```

is equivalent to this expression:

`("ABC" LIKE "B") && ((44 - (5 * (2 ^ 3))) == 4)`

Logical operators:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d14393e107">
              <p style="margin-bottom:0;">Operator</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d14393e113">
              <p style="margin-bottom:0;">Description</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e107 ">
              <p>
                <code>&amp;&amp;</code>
              </p>
              <p style="margin-bottom:0;">
                <code>AND</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e113 ">
              <p style="margin-bottom:0;">True if all of the joined expressions are true. For example, <code>A AND B</code> returns true if both A and B are
                true.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e107 ">
              <p>
                <code>||</code>
              </p>
              <p style="margin-bottom:0;">
                <code>OR</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e113 ">
              <p style="margin-bottom:0;">True if any of the joined expressions are true. For example, <code>A AND B</code> returns true if either A or B is
                true.</p>
            </td>

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

Comparison operators:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d14393e193">
              <p style="margin-bottom:0;">Operator</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d14393e199">
              <p style="margin-bottom:0;">Description</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e193 ">
              <p style="margin-bottom:0;">
                <code>&gt;</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e199 ">
              <p style="margin-bottom:0;">True if the first expression has a greater value than the second. For
                example, <code>3 &gt; 2</code> returns true.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e193 ">
              <p style="margin-bottom:0;">
                <code>&gt;=</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e199 ">
              <p style="margin-bottom:0;">True if the first expression has a greater value than the second or if
                the values are equal. For example, both <code>3
                              &gt;= 2</code> and <code>2 &gt;= 2</code>
                return true.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e193 ">
              <p style="margin-bottom:0;">
                <code>&lt;</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e199 ">
              <p style="margin-bottom:0;">True if the second expression has a greater value than the first. For
                example, <code>2&nbsp;&lt; 3</code> returns true.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e193 ">
              <p style="margin-bottom:0;">
                <code>&lt;=</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e199 ">
              <p style="margin-bottom:0;">True if the second expression has a greater value than the first or if
                the values are equal. For example, both <code>2&nbsp;&lt;= 3</code> and <code>2 &lt;= 2</code>
                return true.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e193 ">
              <p>
                <code>!=</code>
              </p>
              <p style="margin-bottom:0;">
                <code>&lt;&gt;</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e199 ">
              <p style="margin-bottom:0;">True if the values of the first and second expressions aren’t equal. For
                example, <code>3 != 2</code> returns true.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e193 ">
              <p style="margin-bottom:0;">
                <code>==</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e199 ">
              <p style="margin-bottom:0;">True if the values of the first and second expressions are equal. For
                example, <code>2&nbsp;== 2</code> returns true.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e193 ">
              <p style="margin-bottom:0;">
                <code>=</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e199 ">
              <p style="margin-bottom:0;">Assigns the value of the second expression to the first expression. For
                example, <code>A&nbsp;= 2</code> sets the value of A
                to 2.</p>
            </td>

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

String operators:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d14393e386">
              <p style="margin-bottom:0;">Operator</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d14393e392">
              <p style="margin-bottom:0;">Description</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e386 ">
              <p style="margin-bottom:0;">
                <code>LIKE</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e392 ">
              <p style="margin-bottom:0;">True if the left-hand side contains the right-hand side. For example,
                <code>"ABC" LIKE "A"</code> returns true.
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e386 ">
              <p style="margin-bottom:0;">
                <code>NOTLIKE</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e392 ">
              <p style="margin-bottom:0;">True if the left-hand side doesn’t contain the right-hand side. For
                example, <code>"ABC" NOTLIKE "A"</code> returns
                false.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e386 ">
              <p style="margin-bottom:0;">
                <code>~=</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e392 ">
              <p style="margin-bottom:0;">Performs a case insensitive comparison. For example, <code>"ABC" ~= "abc"</code> returns true. <span>Introduced in Summer '20.</span>
              </p>
            </td>

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

Mathematical operators:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d14393e484">
              <p style="margin-bottom:0;">Operator</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d14393e490">
              <p style="margin-bottom:0;">Description</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e484 ">
              <p style="margin-bottom:0;">
                <code>+</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e490 ">
              <p style="margin-bottom:0;">Adds two numbers.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e484 ">
              <p style="margin-bottom:0;">
                <code>-</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e490 ">
              <p style="margin-bottom:0;">Subtracts the second number from the first.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e484 ">
              <p style="margin-bottom:0;">
                <code>*</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e490 ">
              <p style="margin-bottom:0;">Multiplies two numbers.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e484 ">
              <p style="margin-bottom:0;">
                <code>/</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e490 ">
              <p style="margin-bottom:0;">Divides the first number by the second.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e484 ">
              <p style="margin-bottom:0;">
                <code>%</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e490 ">
              <p style="margin-bottom:0;">Returns the percentage of the first number specified by the second
                number. For example, <code>50 % 20</code> returns
                10.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Operator" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e484 ">
              <p style="margin-bottom:0;">
                <code>^</code>
              </p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e490 ">
              <p style="margin-bottom:0;">Returns the power of the first number specified by the second number. For
                example, <code>2 ^ 3</code> returns 8.</p>
            </td>

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

## Supported Functions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d14393e635">
              <p style="margin-bottom:0;">Function</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d14393e641">
              <p style="margin-bottom:0;">Returns</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d14393e647">
              <p style="margin-bottom:0;">Example</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">ABS(number)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Absolute value of the specified number</p>
              <p style="margin-bottom:0;">Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">ABS(-1) returns 1</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">ADDDAY(date, days)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Adds the specified number of days to the specified date and returns the
                resulting date.</p>
              <p style="margin-bottom:0;">Data type: Datetime</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">ADDDAY("1999-01-01",100) returns "1999-04-11 00:00:00"</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">ADDMONTH(date, months)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Adds the specified number of months to the specified date and returns the
                resulting date.</p>
              <p style="margin-bottom:0;">Data type: Datetime</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">ADDMONTH("1999-01-01",100) returns "2007-05-01 00:00:00"</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">ADDYEAR(date, years)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Adds the specified number of years to the specified date and returns the
                resulting date.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719119436"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719119436"><!-- --></a>Data type: Datetime</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">ADDYEAR("1999-01-01",100) returns "2099-01-01 00:00:00"</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">AGE(birthdate)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the age for the specified birthdate.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719145782"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719145782"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">AGE(Account:Contact:Birthdate)</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">AGEON(date)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>For a specified birthdate, returns the age on the specified date</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719177142"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719177142"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">AGEON(Account:Contact:Birthdate,TODAY()) (same as AGE).</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">AVG(list)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Average of list of values.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719200006"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719200006"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>AVG(1,2,3,4,5,6,7,8,9,10) returns 5.5</p>
              <p>You can use AVG on a JSON array. For example, AVG(List:Item) returns 4
                for the following sample data:</p>
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>{
  "List": [ 
    {
      "Item": 3
    },
    {
      "Item": 4
    },
    {
      "Item": 5
    }
  ]
}	</code></pre>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">BASE64ENCODE(String)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the input string with base 64 encoding applied.</p>
              <p style="margin-bottom:0;">Data type: String</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">BASE64ENCODE(Encode this string) returns RW5jb2RlIHRoaXMgdGV4dA==</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">BASEURL()</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the base URL of the Org. A parameter isn’t required.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719247900"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719247900"><!-- --></a>Data type: String</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">BASEURL()</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">CEILING</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263312722908202"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263312722908202"><!-- --></a>Use with ROUND to specify that the rounding result is rounded up (away
                from zero) to the nearest integer.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719271400"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719271400"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">ROUND(2.572, 0, CEILING) returns 3</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">CONCAT(String1, String2, ...)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the concatenation of the specified strings.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719291594"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719291594"><!-- --></a>Data type: String</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">CONCAT(Contact:FirstName, " ", Contact:LastName)</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">COUNTQUERY(query)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the number of rows that meet the WHERE clause criteria.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719337720"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719337720"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">COUNTQUERY ( "SELECT COUNT() FROM Case WHERE AccountId = '{0}'" , Id
                )</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">DATEDIFF(date, date)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the number of days between two specified dates. If the first date
                is greater than the second date, the value is returned as a negative
                number.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719350898"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719350898"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>DATEDIFF("1900-01-01","2000-01-01") returns 36524</p>
              <p>DATEDIFF("2000-01-01","1999-01-01") returns -365</p>
              <p style="margin-bottom:0;">DATEDIFF(Account:Cases:CreatedDate,TODAY()) returns the number of days a
                case has been open</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">DATETIMETOUNIX(datetime)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Converts a DateTime value to epoch (the number of milliseconds elapsed
                since 1/1/1970).</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719414988"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719414988"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">DATETIMETOUNIX('11/30/2016 07:15:34') returns 1480490134000</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">DESERIALIZE(jsonStr)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Converts a JSON string into a JSON object based on the specified key. If
                the data is in list format, use the DESERIALIZE function inside the LIST
                function.</p>
              <p>Available in Winter '20 and later
                releases.</p>
              <p style="margin-bottom:0;">Data type: JSON object</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>DESERIALIZE("{"key":"value"}")</p>
              <p>returns { "key": "value" }</p>
              <p>LIST(DESERIALIZE("[{"key":"value"},{"key2":"value2"}]"))</p>
              <p style="margin-bottom:0;">returns [ { "key": "value" }, { "key2": "value2" } ]</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">DOWN</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Use with ROUND to specify that the rounding result is rounded down
                (towards zero).</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719509750"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719509750"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">ROUND(2.572, 2, DOWN) returns 2.57</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">EOM(date)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>For a specified date, returns the date of the last day of the month.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719574552"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719574552"><!-- --></a>Data type: Datetime</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">EOM(Account:Cases:CreatedDate)</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">FILTER(searchList, condition)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Filter a list of JSON objects and return the subset that matches the
                specified conditions. </p>
              <p>The last two examples show how to filter based on a variable rather than
                a hard-coded value.</p>
              <p style="margin-bottom:0;">Data type: JSON list</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>FILTER(LIST(InputList), 'LastName == "Smith"')</p>
              <p>FILTER(LIST(Names), 'Name == "' + FindName + '"')</p>
              <p style="margin-bottom:0;">FILTER(LIST(data(PromotionProducts), 'productCode == "' +
                ConnectionProdCode + '"')</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">FLOOR</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263312723257932"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263312723257932"><!-- --></a>Use with ROUND to specify that the rounding result is rounded down
                (towards zero) to the nearest integer.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719785176"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719785176"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263312723350710"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263312723350710"><!-- --></a>ROUND(2.572, 0, FLOOR) returns 2</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">FORMATDATETIME(datetime, format, timezone)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Accepts a date or datetime SObject field or a datetime string and returns
                a formatted datetime string. A string input must be in one of these
                formats:</p>
              <ul>
                <li>
                  <p>2019-02-02T00:00:00</p>
                </li>

                <li>
                  <p>2018-12-30T00:00:00.000000Z</p>
                </li>

              </ul>
              <p>You can supply an optional output formatting parameter using <a href="https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html" target="_blank">SimpleDateFormat</a> notation.</p>
              <p>The time zone is GMT, so specifying GMT times is recommended. These times
                are converted to the optional specified time zone. If no time zone is
                specified, the default is the user's time zone.</p>
              <p>For a list of time zone names, see the <a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones" target="_blank">List of tz database time zones</a>
                Wikipedia page.</p>
              <p>The default time is 00:00:00 GMT. The default date is 01-01-1970, so
                specifying a complete date is recommended.</p>
              <p style="margin-bottom:0;">Data type: String</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>FORMATDATETIME("2019-02-02T00:00:00")</p>
              <p style="margin-bottom:0;">FORMATDATETIME("2018-12-30T00:00:00.000000Z","yyyy-MM-dd'T'HH:mm:ss.SSSZ","America/New_York")</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">FORMATDATETIMEGMT(datetime, timezone, format)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Formats datetime data as FORMATDATETIME does, but also converts from the
                specified time zone to GMT.</p>
              <p>If no optional time zone name parameter is specified, the default is the
                current user’s time zone. For a list of time zone names, see the <a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones" target="_blank">List of tz database time zones</a>
                Wikipedia page.</p>
              <p>If no optional output format parameter is specified, the default output
                format is yyyy-MM-dd'T'HH:mm:ss.SSSZ.</p>
              <p style="margin-bottom:0;">Data type: String</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">FORMATDATETIMEGMT("2018-12-30T00:00:00.000000Z","America/New_York","yyyy-MM-dd'T'HH:mm:ss.SSSZ")</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">FUNCTION('class', 'method', input)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Executes a custom function defined in the method of an Apex class. </p>
              <p>If the input includes a LIST function, the LIST part of the input is
                saved to a&nbsp;<code>VLOCITY-FORMULA-LIST</code>&nbsp;key. </p>
              <p>Available in Vlocity Health and Insurance
                Spring '21 and later releases.</p>
              <p style="margin-bottom:0;">Data type: depends on function</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">FUNCTION('Statistics', 'calcStdDev', DataPoints)</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">HALF_DOWN</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Use with ROUND to specify that the rounding result is rounded towards the
                nearest neighbor (up or down) unless the neighbors are equidistant, in
                which case it rounds down.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719982376"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719982376"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">ROUND(2.575, 2, HALF_DOWN) returns 2.57</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">HALF_EVEN</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Use with ROUND to specify that the rounding result is rounded towards the
                nearest neighbor (up or down) unless the neighbors are equidistant, in
                which case it rounds to the nearest even neighbor.</p>
              <p>Behaves as for ROUND HALF_UP if the digit to the left of the discarded
                fraction is odd; behaves as for ROUND HALF_DOWN if it is even.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719992676"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293719992676"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">ROUND(2.57, 1, HALF_EVEN) returns 2.6, which is rounded up to the nearest
                even one-decimal place.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">HALF_UP</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Use with ROUND to specify that the rounding result is rounded towards the
                nearest neighbor (up or down) unless the neighbors are equidistant, in
                which case it rounds up.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720001310"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720001310"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">ROUND(2.575, 2, HALF_UP) returns 2.58</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">GENERATEGLOBALKEY(prefix)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Generates a global key that can be used as an Id in a DataPack. If you
                include an optional parameter, it’s prefixed to the key.</p>
              <p style="margin-bottom:0;">Data type: String</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>GENERATEGLOBALKEY(SUB)</p>
              <p style="margin-bottom:0;">Returns a value such as SUB-4c6aaba3-88e4-13f3-fe07-afa756f31e92</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">IF(expression, trueResult, falseResult)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Evaluates the expression. If true, returns the first result value, if
                false, returns the second.</p>
              <p>You can use IF to filter a list. The second example filters an input list
                of phones to an output list of only Apple phones.</p>
              <p>The third example removes an initial dollar sign if it’s present, leaving
                a number that can be used in calculations.</p>
              <p>The fourth example demonstrates the nesting of IF functions. Drivers
                under 25 qualify for a discount if they’re good students, and drivers
                over 25 qualify if they refer two or more friends.</p>
              <p>The fifth example shows a workaround to avoid dividing by zero when you
                calculate a reciprocal.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720070942"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720070942"><!-- --></a>Data type: depends on trueResult and falseResult</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>IF(InputDate &lt; "2000-01-01", "20th Century", "21st
                Century")</p>
              <p>IF(phones:brand == "Apple", phones:name,
                null)</p>
              <p>IF(SUBSTRING(price,0,1) == "$", SUBSTRING(price,1),
                price)</p>
              <p>IF(DriverAge &gt;= 25,IF(FriendsReferred &gt;= 2, true,
                false),IF(GPA &gt;= 3.0, true, false))</p>
              <p>IF(amount &gt; 0,
                1/IF(amount &gt; 0, amount, 1), 0)</p>
              <p style="margin-bottom:0;">IF(%Color% =
                "Red","Black",%Color%)</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">InvokeIP ('IP_Name', INPUT('Key', Value), INPUT('Key', Value)...,
                'OutputKey')</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Calls an Integration Procedure for formulas with complex use
                cases.</p>
              <p>Note that the InvokeIP formula function is only supported in the
                insurance package (vlocity_ins package).</p>
              <p>Takes the 'IP_Name' in the
                format&nbsp;Type_SubType.</p>
              <p>Takes one or more INPUT('Key',Value) pairs as inputs to
                the Integration Procedure.</p>
              <p>The 'OutputKey' is the IP Response Action output
                JSON key to get the resulting value.</p>
              <p style="margin-bottom:0;">Data type: JSON key</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">InvokeIP ('Auto_Renewal', INPUT('assetId', 123456), 'AnOutPutKey')</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">ISBLANK(expression)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns true if the argument is blank, false if it isn’t.</p>
              <p style="margin-bottom:0;">Data type: Boolean</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">ISBLANK('Marty') returns false</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">ISNOTBLANK(expression)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns true if the argument isn’t blank, false if it is.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720333228"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720333228"><!-- --></a>Data type: Boolean</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">ISNOTBLANK('Marty') returns true</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">LIST(expression)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Encapsulates the argument as a list, for calling functions that require
                input in list format.</p>
              <p style="margin-bottom:0;">Data type: JSON list</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">&nbsp;</td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">LISTMERGE("merge_key1"[,..."mergekeyN"], LIST(List1), ...LIST(ListN))</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Merges any number of lists, combining entries when the values of the
                specified key match . Specify the keys as a comma-separated list of
                quoted key names, and specify lists using the LIST function. If lists
                contain identically-named nodes that contain different values, subsequent
                values overwrite earlier values in the result list. The output contains
                all the keys from all the lists.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720400452"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720400452"><!-- --></a>Data type: JSON list</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">LISTMERGE("Id", LIST(CurrentAccounts), LIST(ArchivedAccounts),
                LIST(ProspectiveAccounts))</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">LISTMERGEPRIMARY("merge_key1"[,..."mergekeyN"], LIST(List1),
                ...LIST(ListN))</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Identical to LISTMERGE, except that the output list contains only the
                keys from the first list. Useful, for example, when you have a list of
                qualified products that you want to augment with data from related lists,
                but you do not want any products from the related lists added to the
                output.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720411560"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720411560"><!-- --></a>Data type: JSON list</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">LISTMERGEPRIMARY("FirstName,LastName", LIST(ListMerge1),
                LIST(ListMerge2), LIST(ListMerge3))</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">LISTSIZE(list)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the number of items in the list.</p>
              <p>To test for an empty list, use the ISBLANK function.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720490014"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720490014"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>LIST(6,7,8,9,10) returns 5</p>
              <p>IF(ISBLANK(list),0,LISTSIZE(list))
                tests for a blank list and then returns the size</p>
              <p>LISTSIZE(QUERY()) returns 1 if QUERY() returns no results. To return 0 in
                this case,&nbsp;use two expressions in separate Set Values actions or
                Data Mapper functions, such as:</p>
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>QUERY("SELECT Name FROM Contact WHERE LastName LIKE '{0}'",%InputName%)
IF(ISBLANK(QueryResult),0,LISTSIZE(QueryResult))</code></pre>
              <p>You can use LISTSIZE
                on a JSON array. For example, LISTSIZE(NameList) returns 3 for the
                following sample
                data:</p>
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_programlisting-idm263140441378982"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_programlisting-idm263140441378982"><!-- --></a><code>{
  "NameList": [ 
    {
      "FirstName": "Aaron",
      "LastName": "Xavier"
    },
    {
      "FirstName": "Zellie",
      "LastName": "Xavier"
    },
    {
      "FirstName": "Mike",
      "LastName": "Smith"
    }
  ]
}						
</code></pre>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">MAX(list)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Maximum value in a list of values.</p>
              <p>In Vlocity Health and Insurance Spring
                '21 or later, this function no longer works for Strings.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720502252"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720502252"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>MAX(1,2,3,4,5,6,7,8,9,10) returns 10</p>
              <p>You can use MAX on a JSON array. For example, MAX(List:Item) returns 5
                for the following sample data:</p>
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>{
  "List": [ 
    {
      "Item": 3
    },
    {
      "Item": 4
    },
    {
      "Item": 5
    }
  ]
}</code></pre>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">MAXSTRING(String1, String2, ...)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the last string alphabetically.</p>
              <p id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263223721600528"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263223721600528"><!-- --></a>Available in Vlocity Health and Insurance
                Spring '21 and later releases.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720562124"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720562124"><!-- --></a>Data type: String</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">MAXSTRING("Amy","Ziggy") returns "Ziggy"</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">MIN(list)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the lowest in a list of values</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720588232"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720588232"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>MIN(1,2,3,4,5,6,7,8,9,10) returns 1</p>
              <p>You can use MIN on a JSON array. For example, AVG(List:Item) returns 3
                for the following sample data:</p>
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>{
  "List": [ 
    {
      "Item": 3
    },
    {
      "Item": 4
    },
    {
      "Item": 5
    }
  ]
}</code></pre>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">MONTH(date)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the month of the specified date as an integer.</p>
              <p style="margin-bottom:0;">Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">MONTH("1999-01-11") returns 1</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">NOW(format)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the current date and time. You can supply an optional
                formatting parameter using <a href="https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html" target="_blank">SimpleDateFormat</a>
                notation.</p>
              <p>You can use NOW to specify dates and times relative to
                the current date and time.</p>
              <p>The $Vlocity.NOW environment variable
                applies the user or org time zone, while the NOW() function applies UTC
                time.</p>
              <p style="margin-bottom:0;">Data type: Datetime</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>NOW()</p>
              <p style="margin-bottom:0;">NOW("yyyy-MM-dd'T'HH:mm:ss.SSSZ")</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">ORDERITEMATTRIBUTES(Orderitemid)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the attributes of the order item in key-value pairs. OrderItemId
                must be specified as a parameter.</p>
              <p>Output Format:</p>
              <p style="margin-bottom:0;">List&lt;Map&lt;String,Object&gt;&gt;</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">ORDERITEMATTRIBUTES(80146000002I7dO)</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">QUERY(query)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Executes a SOQL query that returns a JSON list of values. The query can’t
                retrieve more than one column.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720750632"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720750632"><!-- --></a>Data type: JSON list</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>QUERY ("SELECT Name FROM Account WHERE BillingState ='CA'")</p>
              <p>You can also pass in values. For example:</p>
              <p>QUERY( "SELECT AccountId FROM User WHERE Id = '{0}'",$Vlocity.UserId
                )</p>
              <p>LISTSIZE(QUERY()) returns 1 if QUERY() returns no results. To return 0 in
                this case,&nbsp;use two expressions in separate Set Values actions or
                Data Mapper functions, such as:</p>
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>QUERY("SELECT Name FROM Contact WHERE LastName LIKE '{0}'",%InputName%)
IF(ISBLANK(QueryResult),0,LISTSIZE(QueryResult))</code></pre>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">RESERIALIZE(jsonStr)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Equivalent to SERIALIZE(DESERIALIZE()). Converts JSON string into a
                generic Map&lt;String, Object&gt; format based on the specified key.
                Useful in Remote Actions for converting Apex class output so that
                Integration&nbsp;Procedures and Data Mappers can accept it.</p>
              <p>Available in Winter '20 and later
                releases.</p>
              <p>Output Format:</p>
              <p style="margin-bottom:0;">Map&lt;String, Object&gt;</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">See <a href="https://help.salesforce.com/s/articleView?id=xcloud.os_remote_action_for_integration_procedures.htm&amp;release=264.0.0&amp;type=5" title="For the managed package runtime, the Remote Action element calls the specified Apex class and method or the specified invocable action. You can also pass in invocation options and data. The Apex class must implement the VlocityOpenInterface2 or Callable interface.">Remote Action for Integration Procedures (Managed Package)</a>.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">ROUND(expression, precision, direction)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Rounds the specified number or expression. By default, results are
                rounded to two decimal places, but you can specify an optional precision
                for the result.</p>
              <p>You can also use the optional UP, DOWN, HALF_UP, HALF_DOWN, HALF_EVEN,
                CEILING, and FLOOR direction parameters to refine the rounding
                results.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720815500"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293720815500"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>ROUND(3.1415 * 3) = 9.42</p>
              <p style="margin-bottom:0;">ROUND(3.1415 * 3, 0) = 9</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">SERIALIZE(jsonStr)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Converts a JSON string into a JSON object based on the specified key. If
                the data is in list format, use the LIST function inside the SERIALIZE
                function. Note how it differs from TOSTRING.</p>
              <p>Available in Winter '20 and later
                releases.</p>
              <p style="margin-bottom:0;">Data type: String</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>SERIALIZE({ "key": "value" })</p>
              <p>returns "{"key":"value"}"</p>
              <p>SERIALIZE(LIST([ { "key": "value" }, { "key2": "value2" } ]))</p>
              <p style="margin-bottom:0;">returns "[{"key":"value"},{"key2":"value2"}]"</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">SORTBY(LIST(InputList), 'key1', 'key2', ... , '[:DSC]')</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Sorts a list of JSON objects by specified nodes. By default, the sort is
                ascending. For a descending sort, specify the optional <code>[:DSC]</code> parameter. Supported only for
                Data Mapper Transforms.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721022098"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721022098"><!-- --></a>Data type: JSON list</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>SORTBY(LIST(NameList), 'LastName', 'FirstName')</p>
              <p id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263292477212998"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263292477212998"><!-- --></a>SORTBY(LIST(NameList), 'LastName', 'FirstName', '[:DSC]')</p>
              <p>Sample data:</p>
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>{
  "NameList": [ 
    {
      "FirstName": "Aaron",
      "LastName": "Xavier"
    },
    {
      "FirstName": "Zellie",
      "LastName": "Xavier"
    },
    {
      "FirstName": "Mike",
      "LastName": "Smith"
    }
  ]
}						
</code></pre>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">SQRT(number)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Calculates the square root of a value.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721054682"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721054682"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">SQRT(12 * 3) returns 6</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">STRINGINDEXOF(String, substring)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the position index of a substring in the given String. The first
                position is zero. If the substring isn’t present, the value returned is
                -1.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721072890"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721072890"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">STRINGINDEXOF("This is the test String","test") returns 12</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">SUBSTRING(String, startIndex, endIndex)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the portion of the String that begins at the startIndex and ends
                at the endIndex. The optional startIndex and endIndex can be Strings or
                integers. For integers, the first position is zero. If the startIndex
                isn’t found, the first position is used. If the endIndex isn’t found,
                the last position is used.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721103030"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721103030"><!-- --></a>Data type: String</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>The following examples operate on this input:</p>
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>{ "input": "The quick brown fox jumped over the lazy dog." }
</code></pre>
              <p>SUBSTRING(input) returns the entire String</p>
              <p>SUBSTRING(input,32) returns "the lazy dog."</p>
              <p>SUBSTRING(input,"lazy") returns "lazy dog."</p>
              <p>SUBSTRING(input,0,9) returns "The quick"</p>
              <p>SUBSTRING(input,10,19) returns "brown fox"</p>
              <p style="margin-bottom:0;">SUBSTRING(input,"q","n") returns "quick brow"</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">SUM(list)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the sum of a list of values.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721125046"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721125046"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>SUM(1,2,3,4,5,6,7,8,9,10) returns 55</p>
              <p>You can use SUM on a JSON array. For example, AVG(List:Item) returns 12
                for the following sample data:</p>
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>{
  "List": [ 
    {
      "Item": 3
    },
    {
      "Item": 4
    },
    {
      "Item": 5
    }
  ]
}</code></pre>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">TODAY(format)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns today's date. You can supply an optional formatting parameter
                using <a href="https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html" target="_blank">SimpleDateFormat</a> notation.</p>
              <p>You can use TODAY to specify dates relative to the current date.</p>
              <p style="margin-bottom:0;">Data type: Datetime</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>TODAY()</p>
              <p>TODAY("yyyy-MM-dd'T'HH:mm:ss.SSSZ")</p>
              <p>ADDDAY(EOM(ADDMONTH(TODAY(),-1)),1) returns the first day of the current
                month</p>
              <p>ADDDAY(EOM(ADDMONTH(TODAY(),0)),1) returns the first day of next
                month</p>
              <p style="margin-bottom:0;">CONCAT(YEAR(ADDYEAR(TODAY(),1)),"-01-01") returns the first day of next
                year</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">TOSTRING(data)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Converts any input to a literal String. Note how it differs from
                SERIALIZE in the way it converts JSON data.</p>
              <p>Available in Winter '20 and later
                releases.</p>
              <p id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721196678"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721196678"><!-- --></a>Data type: String</p>
              <p style="margin-bottom:0;">The function shows up to 10 items per collection in the output, followed
                by an ellipsis (…).</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>TOSTRING(3.0) returns "3.0"</p>
              <p>TOSTRING([4,5]) returns "4,5"</p>
              <p>TOSTRING({ "key": "value" }) returns "{key=value}"</p>
              <p>TOSTRING([ { "key": "value" }, { "key2": "value2" } ])</p>
              <p style="margin-bottom:0;">returns "{key=value}, {key2=value2}"</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">UNIXTODATETIME(epoch)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Given a Unix epoch value, returns the corresponding DateTime.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721216142"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721216142"><!-- --></a>Data type: Datetime</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>UNIXTODATETIME('1480490134000')</p>
              <p style="margin-bottom:0;">returns "2016-11-30T07:15:34.000Z"</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">UP</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Use with ROUND to specify that the rounding result is rounded up (away
                from zero).</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721242150"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721242150"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">ROUND(2.572, 2, UP) returns 2.58</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">VALUELOOKUP(StartNode, NodeVar, NodeVar ,,,)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the value of a JSON node referenced by another JSON node. This
                function lets you dynamically specify the node to retrieve from.</p>
              <p>The StartNode parameter must be a hard-coded node. It can be a path such
                as Data:Name.</p>
              <p>Each NodeVar parameter must be an input node with the name of another
                node as its value.</p>
              <p>If more than one NodeVar is specified, the previous NodeVar defines the
                starting node for the next NodeVar. You can retrieve any number of
                levels.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721358588"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721358588"><!-- --></a>Data type: String</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p>For the following sample input data:</p>
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>{
  "Data": {
    "Name": {
      "FirstName": "Thomas",
      "MiddleName": "Alva",
      "LastName": "Edison"
    }
  },
  "GetGroup": "Name",
  "GetField": "FirstName"
}</code></pre>
              <p>VALUELOOKUP(Data, GetGroup, GetField) returns "Thomas"</p>
              <p>VALUELOOKUP(Data:Name, GetField) also returns "Thomas"</p>
              <p style="margin-bottom:0;">VALUELOOKUP(Data, GetGroup) returns the contents of Name</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Function" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e635 ">
              <p style="margin-bottom:0;">YEAR(date)</p>
            </td>

            <td data-label="Returns" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e641 ">
              <p>Returns the year of the specified date as an integer.</p>
              <p style="margin-bottom:0;" id="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721381418"><a name="os_function_reference__UUID-47a37d48-4e57-131e-e25b-ae3394b8d7e6_para-idm263293721381418"><!-- --></a>Data type: Number</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d14393e647 ">
              <p style="margin-bottom:0;">YEAR("1999-01-11") returns 1999</p>
            </td>

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