---
title: "Functions"
description: "Functions are used in formulas that you create on the Formula editor dialog box, which you can invoke from the Manage import scenarios (SM206025) or Manage export scenarios (SM207025) windows."
lang: en
languages:
  en: https://docs.vismasoftware.no/visma-net-erp/help/integration/configuring-scenario-mapping/functions/index.md
lastmod: 2026-02-19
---

> Documentation index: https://docs.vismasoftware.no/visma-net-erp/help/integration/configuring-scenario-mapping/llms.txt


# Functions

Last modified February 19, 2026

> Functions are used in formulas that you create on the Formula editor dialog box, which you can invoke from the Manage import scenarios (SM206025) or Manage export scenarios (SM207025) windows.


For more information: [Manage import scenarios (SM206025)](https://docs.vismasoftware.no/visma-net-erp/help/integration/integration-windows/manage-import-scenarios-sm206025/index.md), [Manage export scenarios (SM207025)](https://docs.vismasoftware.no/visma-net-erp/help/integration/integration-windows/manage-export-scenarios-sm207025/index.md).

To add functions to a formula, you can type them in the Formula text area of the dialog box or select them from the list of formula components available within the dialog box. (Select a function type to view the list of functions of the type, and then select a function.)

This topic describes and provides examples of the functions you can use in formulas, broken down by type.

## Conversion functions

The available conversion functions, which are used to convert data from one data type to another, are listed below.

<table class="vismanet-table">
  <colgroup>
    <col class="vismanet-table__col--key">
    <col>
  </colgroup>
<thead class="vismanet-table__head">
  <tr class="vismanet-table__header-row">
<th class="vismanet-table__cell vismanet-table__cell--header">Function</th>
<th class="vismanet-table__cell vismanet-table__cell--header">Description and example</th>
</tr>
</thead>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><code>CBool(x)</code></td>
<td class="vismanet-table__cell"><p>Converts the expression used as the function argument into a
Boolean expression.
Returns <code>False</code> if the Boolean value
is zero; otherwise, returns <code>True</code>.</p>
<p>Example: <code>=CBool([CashDiscountAmount]</code></p>
<p>Here <code>[CashDiscountAmount]</code> is used as the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><code>CDate(x)</code></td>
<td class="vismanet-table__cell"><p>Converts the expression used as the function argument into a
value of the <strong>Date</strong> type.
The argument should be a valid
date expression according to the locale selected for the import
or export scenario.</p>
<p>Example: <code>=CDate('24/12/2011')</code></p>
<p>Here a string is used as the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><code>CStr(x)</code></td>
<td class="vismanet-table__cell"><p>Converts the expression used as the function argument into a
string.
If the argument is <code>Null</code>, the function returns a
run-time error; otherwise, it returns a string.</p>
<p>Example: <code>='(' +CStr([AreaCode])+')'+CStr([Phone])</code></p>
<p>Here <code>[AreaCode]</code> and <code>[Phone]</code> are used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><code>CDbl(x)</code></td>
<td class="vismanet-table__cell"><p>Converts the expression defined in the function argument into a value of the <code>Double</code> type.</p>
<p>Example: <code>=CDbl(1.0/[ExchangeRate])</code></p>
<p>Here <code>[ExchangeRate]</code> is used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><code>CSng(x)</code></td>
<td class="vismanet-table__cell"><p>Converts the expression used as the function argument into a
value of the <code>Single</code> type.
If the expression has
a value outside the acceptable range for the
<code>Single</code> type, this function returns an
error.</p>
<p>Example: <code>=CSng([CashDiscountAmount]/[DocAmount])</code></p>
<p>Here <code>[CashDiscountAmount]</code> and <code>[DocAmount]</code> are used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">CDec(x)</td>
<td class="vismanet-table__cell"><p>Converts the expression used as the function argument into a value of the <code>Decimal</code> type.</p>
<p>Example: <code>=CDec([DocAmount]*0.015)</code></p>
<p>Here <code>[DocAmount]</code> is used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">CInt(x)</td>
<td class="vismanet-table__cell"><p>Converts the expression used as the function argument into a value of the <code>Integer</code> type.</p>
<p>Example: <code>=CInt('2012')-Year([DocDate])</code></p>
<p>Here <code>[DocDate]</code> is used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">CShort(x)</td>
<td class="vismanet-table__cell"><p>Converts a numeric value to a value of the <code>Short</code> type.</p>
<p>Example: <code>=CShort([CashDiscountAmount])</code></p>
<p>Here <code>[CashDiscountAmount]</code> is used as the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">CLong(x)</td>
<td class="vismanet-table__cell"><p>Converts a numeric value to a value of the <code>Long</code> type.</p>
<p>Example: <code>=CLong([CashDiscountAmount])</code></p>
<p>Here <code>[CashDiscountAmount]</code> is used as the function argument.</p>
</td>
</tr>

</table>


## Text functions

Text functions are used to perform operations on text strings. The group of text functions includes the functions described below.

<table class="vismanet-table">
  <colgroup>
    <col class="vismanet-table__col--key">
    <col>
  </colgroup>
<thead class="vismanet-table__head">
  <tr class="vismanet-table__header-row">
<th class="vismanet-table__cell vismanet-table__cell--header">Function</th>
<th class="vismanet-table__cell vismanet-table__cell--header">Description and example</th>
</tr>
</thead>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">LTrim(string)</td>
<td class="vismanet-table__cell"><p>Removes all leading spaces or parsing characters from the specified string, or all leading zero bytes (0) from the specified binary expression.</p>
<p>Example: <code>=LTrim(CStr([Phone]))</code></p>
<p>Here <code>[Phone]</code> is used as the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">RTrim(string)</td>
<td class="vismanet-table__cell"><p>Removes all trailing spaces or parsing characters from the specified character expression, or all trailing zero (0) bytes from the specified binary expression.</p>
<p>Example: <code>=RTrim(CStr([AreaCode]))</code></p>
<p>Here <code>[AreaCode]</code> is used as the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Trim(string)</td>
<td class="vismanet-table__cell"><p>Removes all leading and trailing spaces or parsing characters from the specified character expression, or all trailing zero (0) bytes from the specified binary expression.</p>
<p>Example: <code>=Iif(Trim([Country])</code></p>
<p>Here <code>[Country]</code> is used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Format(format, argument(s))</td>
<td class="vismanet-table__cell"><p>Replaces the format item in a specified formatting string ( <strong>format</strong> ) with the text equivalent of the arguments ( <strong>arguments</strong> ).</p>
<p>Example: <code>=Format('Currency:........ {0:C}; Account:........ {1:N}', [Currency], [AccountBalance])</code></p>
<p>Here <code>[Currency]</code> and <code>[AccountBalance]</code> are used in the function argument; 0 and 1 are the specifiers indicating where the arguments will be inserted, <strong>C</strong> is the <strong>currency</strong> format specifier, and <strong>N</strong> is the <strong>number</strong> format specifier.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">UCase(string)</td>
<td class="vismanet-table__cell"><p>Returns a string that has been converted to uppercase.
The
<strong>string</strong> argument can be any valid string expression.
If <strong>string</strong> contains <strong>Null</strong>, <strong>Null</strong> is
returned.</p>
<p>Example: <code>=UCase([CustomerName])</code></p>
<p>Here <code>[CustomerName]</code> is used as the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">LCase(string)</td>
<td class="vismanet-table__cell"><p>Returns a string that has been converted to lowercase.
The
<strong>string</strong> argument can be any valid string expression.
If <strong>string</strong> contains <strong>Null</strong>, <strong>Null</strong> is
returned.</p>
<p>Example: <code>=LCase(CStr([CustomerID])</code></p>
<p>Here <code>[CustomerID]</code> is used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">InStr(string, findString)</td>
<td class="vismanet-table__cell"><p>Returns the position of the first occurrence of one string ( <strong>findString</strong> ) within another ( <strong>string</strong> ).</p>
<p>Example: <code>=InStr([CustomerName], 'Inc')</code></p>
<p>Here <code>[CustomerName]</code> is used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">InStrRev(string, findString)</td>
<td class="vismanet-table__cell"><p>Returns the position of the last occurrence of one string ( <strong>findString</strong> ) within another ( <strong>string</strong> ).</p>
<p>Example: <code>=InStrRev([CustomerName], 'Inc')</code></p>
<p>Here <code>[CustomerName]</code> is used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Len(string)</td>
<td class="vismanet-table__cell"><p>Returns an integer containing either the number of characters in the string or the nominal number of bytes required to store a variable.</p>
<p>Example: <code>=Len([CustomerName])</code></p>
<p>Here <code>[CustomerName]</code> is used as the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Left(string, length)</td>
<td class="vismanet-table__cell"><p>Returns a string containing the specified number of characters from the left side of a string. If <strong>string</strong> contains <strong>Null</strong>, <strong>Null</strong> is returned.</p>
<p>Example: <code>=Left(Trim([VendorName]), 10)</code></p>
<p>Here <code>[VendorName]</code> is used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Right(string, length)</td>
<td class="vismanet-table__cell"><p>Returns a string containing a specified number of characters from the right side of a string. If <strong>string</strong> contains <strong>Null</strong>, <strong>Null</strong> is returned.</p>
<p>Example: <code>=Right(CustomerName, 3)</code></p>
<p>Here <code>[CustomerName]</code> is used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Replace(string, oldValue, newValue)</td>
<td class="vismanet-table__cell"><p>Returns a string in which the specified substring ( <strong>oldValue</strong> ) has been replaced with another substring ( <strong>newValue</strong> ).</p>
<p>Example: <code>=Replace([Description], 'rur', 'eur')</code></p>
<p>Here <code>[Description]</code> is used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">PadLeft(string, width, paddingChar)</td>
<td class="vismanet-table__cell"><p>Right-aligns the characters in a specified string
(<strong>string</strong>), padding with the specified character
(<strong>paddingChar</strong>) on the left up to the specified total
width (<strong>width</strong>).
If the actual length of the <strong>string</strong>
is less than the specified <strong>width</strong>, returns the original
string.</p>
<p>Example: <code>=PadLeft(CStr(Phone), 12, '_')</code></p>
<p>Here <code>[Phone]</code> is used in the function argument. If the actual length of the <strong>string</strong> is less than the specified <strong>width</strong>, returns the original string.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">PadRight(string, width, paddingChar)</td>
<td class="vismanet-table__cell"><p>Left-aligns the characters in a specified string ( <strong>string</strong> ), padding with the specified character ( <strong>paddingChar</strong> ) on the right up to the specified total width ( <strong>width</strong> ).</p>
<p>Example: <code>=PadRight(CStr([City]), 25, '_')</code></p>
<p>Here <code>[City]</code> is used in the function argument. If the actual length of the <strong>string</strong> is less than the specified <strong>width</strong>, returns the original string.</p>
</td>
</tr>

</table>


## Math functions

Mathematical functions, which are listed and described below, perform calculations, usually based on input values provided as arguments, and return numeric values.

<table class="vismanet-table">
  <colgroup>
    <col class="vismanet-table__col--key">
    <col>
  </colgroup>
<thead class="vismanet-table__head">
  <tr class="vismanet-table__header-row">
<th class="vismanet-table__cell vismanet-table__cell--header">Function</th>
<th class="vismanet-table__cell vismanet-table__cell--header">Description and example</th>
</tr>
</thead>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Abs(x)</td>
<td class="vismanet-table__cell"><p>Returns the absolute value of the number.</p>
<p>Example: <code>=Abs([TotalDebit]-[TotalCredit])</code></p>
<p>Here <code>[TotalDebit]</code> and <code>[TotalCredit]</code> are used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Floor(x)</td>
<td class="vismanet-table__cell"><p>Returns the largest integer that is not greater than the argument.</p>
<p>Example: <code>=Floor([Price]/([Cost])</code></p>
<p>Here <code>[Price]</code> and <code>[Cost]</code> are used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Ceiling(x)</td>
<td class="vismanet-table__cell"><p>Returns the smallest integer that is not less than the argument.</p>
<p>Example: <code>=Ceiling([Price]/[Cost])</code></p>
<p>Here <code>[Cost]</code> and <code>[Price]</code> are used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Round(x, decimals)</td>
<td class="vismanet-table__cell"><p>Returns a numeric expression, rounded to the specified precision ( <strong>decimals</strong> ).</p>
<p>Example: <code>=Round(([Price]-[Cost])/[Cost], 2)</code></p>
<p>Here <code>[Cost]</code> and <code>[Price]</code> are used in a function argument, and <strong>2</strong> is the number of decimal places.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Min(x, y)</td>
<td class="vismanet-table__cell"><p>Returns the smaller of the two values.</p>
<p>Example: <code>=Min([Price],[Cost])</code></p>
<p>Here <code>[Cost]</code> and <code>[Price]</code> are used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Max(x, y)</td>
<td class="vismanet-table__cell"><p>Returns the greater of the two values.</p>
<p>Example: <code>=Max({StandardCost],[AvrCost])</code></p>
<p>Here <code>[StandardCost]</code> and <code>[AvrCost]</code> are used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Pow(x, power)</td>
<td class="vismanet-table__cell"><p>Computes the value of x raised to the specified power ( <strong>power</strong> ).</p>
<p>Example: <code>=Pow(([Markup], 2))</code></p>
<p>Here <code>[Markup]</code> is used in the function argument; the function returns the mark-up value squared (or to the second power).</p>
</td>
</tr>

</table>


## Date/time functions

The date/time functions, described below, perform operations on system-generated values and return values of the following types: string, numeric, or **Date/time**.

<table class="vismanet-table">
  <colgroup>
    <col class="vismanet-table__col--key">
    <col>
  </colgroup>
<thead class="vismanet-table__head">
  <tr class="vismanet-table__header-row">
<th class="vismanet-table__cell vismanet-table__cell--header">Function</th>
<th class="vismanet-table__cell vismanet-table__cell--header">Description and example</th>
</tr>
</thead>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Now()</td>
<td class="vismanet-table__cell"><p>Returns the current date and time according to the system date and time on the local
computer.</p>
<p>Example: <code>=Now()</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Today()</td>
<td class="vismanet-table__cell"><p>Returns the current date according to the system date and time on the local
computer.</p>
<p>Example: <code>=Today()</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">NowUTC()</td>
<td class="vismanet-table__cell"><p>Returns the current date and time according to the user&rsquo;s time zone.</p>
<p>The system gets the user&rsquo;s time zone from the following sources, which are ordered by the priority from the highest to the lowest:</p>
<ol>
<li>User&rsquo;s preferences specified in the User profile (SP203010) window.</li>
<li>The employee calendar specified in the Work calendar (CS209000) window and selected for the user&rsquo;s employee in the Employees (EP203000) window.</li>
</ol>
<p>Example: <code>=NowUTC()</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">TodayUTC()</td>
<td class="vismanet-table__cell"><p>Returns the current date according to the user&rsquo;s time zone.</p>
<p>The system gets the user&rsquo;s time zone from the following sources, which are ordered by the priority from the highest to the lowest:</p>
<ol>
<li>
<p>User&rsquo;s preferences specified in the User profile (SP203010) window.</p>
</li>
<li>
<p>The employee calendar specified</p>
</li>
<li></li>
<li>
<p>The employee calendar specified in the Work calendar (CS209000) window and selected for the user&rsquo;s employee in the Employees (EP203000) window.</p>
</li>
</ol>
<p>Example: <code>=TodayUTC()</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">DateAdd(dt, int, nbr)</td>
<td class="vismanet-table__cell"><p>Returns a new date calculated by adding the specified number ( <code>nbr</code> ) of time intervals ( <code>int</code> ) to the date ( <code>dt</code> ). The <code>int</code> argument specifies the type of time interval and is one of the following options:</p>
<dl>
<dt>yyyy</dt>
<dd>A number ( <code>nbr</code> ) of years will be added to the specified date ( <code>dt</code> ).</dd>
<dt>m</dt>
<dd>A number ( <code>nbr</code> ) of months will be added to the specified date ( <code>dt</code> ).</dd>
<dt>y</dt>
<dd>Same as <strong>d</strong>; see below.</dd>
<dt>d</dt>
<dd>A number ( <code>nbr</code> ) of days will be added to the specified date ( <code>dt</code> ).</dd>
<dt>h</dt>
<dd>A number ( <code>nbr</code> ) of hours will be added to the specified date ( <code>dt</code> ).</dd>
<dt>n</dt>
<dd>A number ( <code>nbr</code> ) of minutes will be added to the specified date ( <code>dt</code> ).</dd>
<dt>s</dt>
<dd>A number ( <code>nbr</code> ) of seconds will be added to the specified date ( <code>dt</code> ).</dd>
</dl>
<p>Examples:</p>
<ul>
<li><code>=DateAdd([StartPeriod], 'm', 12)</code></li>
<li><code>=DateAdd([CashDiscountDate], 'd', -2)</code></li>
</ul>
<p>In these examples, <code>[CashDiscountDate]</code> and <code>[StartPeriods]</code> are used in the function arguments.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Year(date)</td>
<td class="vismanet-table__cell"><p>Returns the year, as an integer, extracted from the specified date ( <code>date</code> ).</p>
<p>Example: <code>=Year([StartPeriod])</code></p>
<p>Here <code>[StartPeriod]</code> is used as the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Month(date)</td>
<td class="vismanet-table__cell"><p>Returns the month, as an integer, extracted from the specified date ( <code>date</code> ).</p>
<p>Example: <code>=Month([StartPeriod])</code></p>
<p>Here <code>[StartPeriod]</code> is used as the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Day(date)</td>
<td class="vismanet-table__cell"><p>Returns the day (as an integer) extracted from the specified date ( <code>date</code> ).</p>
<p>Example: <code>=Iif(Day([DueDate]-[LeadTime])=0, True, False</code></p>
<p>Here <code>[DueDate]</code> and <code>[LeadTime]</code> are used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">DayOfWeek(date)</td>
<td class="vismanet-table__cell"><p>Returns the day of the week associated with the specified date ( <code>date</code> ) as an integer.</p>
<p>Example: <code>=DayOfWeek([StartPeriod])</code></p>
<p>Here <code>[StartPeriod]</code> is used as the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">DayOfYear(date)</td>
<td class="vismanet-table__cell"><p>Returns the day of the year calculated for the specified date ( <code>date</code> ).</p>
<p>Example: <code>=DayOfYear([StartPeriod])</code></p>
<p>Here <code>[StartPeriod]</code> is used as the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Minute(date)</td>
<td class="vismanet-table__cell"><p>Returns the number of minutes extracted from the specified date ( <code>date</code> ).</p>
<p>Example: <code>=Minute([StartPeriod])</code></p>
<p>Here <code>[StartPeriod]</code> is used as the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Second(date)</td>
<td class="vismanet-table__cell"><p>Returns the seconds extracted from the specified date ( <code>date</code> ) as an integer.</p>
<p>Example: <code>=Second([StartPeriod])</code></p>
<p>Here <code>[StartPeriod]</code> is used as the function argument.</p>
</td>
</tr>

</table>


## Other functions

This miscellaneous group of functions includes the following functions.

<table class="vismanet-table">
  <colgroup>
    <col class="vismanet-table__col--key">
    <col>
  </colgroup>
<thead class="vismanet-table__head">
  <tr class="vismanet-table__header-row">
<th class="vismanet-table__cell vismanet-table__cell--header">Function</th>
<th class="vismanet-table__cell vismanet-table__cell--header">Description and Example</th>
</tr>
</thead>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">IIf(expression, truePart, falsePart)</td>
<td class="vismanet-table__cell"><p>Returns one of two values, depending on the evaluation of the expression: If the expression evaluates to <code>True</code>, the function returns the <strong>truePart</strong> value; otherwise, it returns the <strong>falsePart</strong> value.</p>
<p>Example: <code>=IIf(([CurrencyID]='', 'USD', [CurrencyID])</code></p>
<p>Here <code>[CurrencyID]</code> is used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Switch( expression_1, value_1, expression_2, value_2,&hellip;)</td>
<td class="vismanet-table__cell"><p>Returns the value <strong>value_n</strong> that corresponds to the first expression <strong>expression_n</strong> that evaluates to <code>True</code>. <strong>expression_1</strong>, <strong>expression_2</strong>, and so on are Boolean expressions.</p>
<p>Example: <code>=Switch(([DocAmount]&lt;100), 'small', (([DocAmount]&gt;=100)And([DocAmount]&lt;500)), 'medium',(([DocAmount]&gt;=500)And([DocAmount]&lt;1000)),'large')</code></p>
<p>Here <code>[DocAmount]</code> is used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">IsNull(value, nullValue)</td>
<td class="vismanet-table__cell"><p>Replaces <code>NULL</code> with the specified replacement value. The <strong>value</strong> argument is to be checked for <code>NULL</code>.</p>
<p>Example: <code>=IsNull([CustomerID],'NULL value')</code> Here, <code>[CustomerID]</code> is used in the function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Sum(from, to)</td>
<td class="vismanet-table__cell">Is not applicable to formulas used by the Integration forms.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Provider.CalculateHash(string)</td>
<td class="vismanet-table__cell"><p>Calculates the hash string for the specified string.</p>
<p>Example: <code>=Provider.CalculateHash([CUSTOMER ID] + [INVOICE REF NBR] + [LINE NBR])</code></p>
<p>In this example, the hash string is calculated for the string that contains concatenated values of the <code>[CUSTOMER ID]</code>, <code>[INVOICE REF NBR]</code>, and <code>[LINE NBR]</code> fields.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Provider.CalculateHashCode(string)</td>
<td class="vismanet-table__cell"><p>Calculates the hash code (which is an <code>Integer</code> value) for the specified string.</p>
<p>Example: <code>=Provider.CalculateHash([CUSTOMER ID] + [INVOICE REF NBR] + [LINE NBR])</code></p>
<p>In this example, the hash code is calculated for the string that contains concatenated values of the <code>[CUSTOMER ID]</code>, <code>[INVOICE REF NBR]</code>, and <code>[LINE NBR]</code> fields.</p>
</td>
</tr>

</table>


**Parent topic:** [Configuring scenario mapping](https://docs.vismasoftware.no/visma-net-erp/help/integration/configuring-scenario-mapping/configuring-scenario-mapping/index.md)


---

[View this page](https://docs.vismasoftware.no/visma-net-erp/help/integration/configuring-scenario-mapping/functions/)
