---
sourceDocument: Australia Sales and Order Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/order-management

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia Sales and Order Management

ft:clusterId :

    - omgmt

bundleId :

    - omgmt

workflow :

    - Customer and Industry


---

# Library functions

# Library functions {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

Library functions can speed implementation and reduce maintenance costs by enabling code reuse across rules.
Library functions enable efficient code reuse across rules and enrichments. They are designed to minimize redundant logic, speed up implementation, and reduce maintenance costs, especially in complex scenarios that involve high-SKU
or physics-driven configurations.

## Attributes and capabilities {#library_functions__section_wxy_w5g_bhc}

Centralized management: Search and manage library functions through a dedicated UI.

Reusable and namespaced: Define a library function once and invoke it using `fn.functionName(params)`.

Configurable parameters: Define input parameters with data types and default values. Parameter schemas can be modified post-creation, allowing flexibility in managing function inputs.

Customized output: Specify return types.

Callable across modules: Library functions are callable in both the configurator and Transaction Manager.

Managed table queries: Library functions support managed table lookups.

## Enabling library functions {#library_functions__section_cnk_1vg_bhc}

Submit a support ticket to enable library functions. Once the support ticket is completed, enable the new UI by navigating to UtilitiesSettingsAdmin VersionNew, and clicking Save.

This setting can be toggled at any time.

## Supported input/output data types {#library_functions__section_rv1_dvg_bhc}

{#library_functions__table_mx4_pvg_bhc__entry__2}

| Type | Description |
|-|-|
| TEXT | Plain text strings |
| NUMBER | Numeric values |
| BOOLEAN | Logical true/false values |
| DATE | Dates (without time component) |
| JSON OBJECT | JSON formatted objects |
| ARRAY | Ordered collections of values |
[Tabelle : 1. Supported input/output data types]

{#library_functions__table_mx4_pvg_bhc}  
Hinweis:  
Empty MAP or ARRAY types are not supported. Unsupported types default to TEXT.

## Usage examples {#library_functions__section_e4p_dwg_bhc}

Library functions can be found in the function library (in the Utilities section).

To add a function:

1. On the Function Library tab, click Add Function.
2. Name the function, specify the return type, and enter a description.

{#library_functions__ol_xbt_mwg_bhc}

Script content:

Calling the function:

## Limitations {#library_functions__section_n1f_5wg_bhc}

* Recursive calls are not supported.
* External API calls and async operations are not supported.
* Parameters are passed by copy, not by reference.
* Functions must be free of side effects, external calls, and Logik field references.
{#library_functions__ul_kff_1xg_bhc}

## General guidelines {#library_functions__section_ik2_lvb_g3c}

* When a library function changes, redeploy the affected blueprints.
* When defining a function, name and describe its inputs to provide visibility into its usage.
{#library_functions__ul_z5c_mvb_g3c}

