# Functions

## Create a new function

<div data-full-width="true"><figure><img src="/files/316219b051546ba4d2c7e9d78ea6b92438570c45" alt=""><figcaption></figcaption></figure></div>

1. Click on **\[A]**
2. Click on **\[B]**
3. Click on **\[C]**\
   ▷ A dialog opens
4. Enter in **\[D]** the name of the format
5. Select in **\[E]** an asset type
6. Click on **\[F]** \
   ▷ A dialog opens
7. Select in **\[G]** the parameters of the asset type
8. Click on **\[H]** \
   ▷ The Configure Function menu opens

## Configure a function

<figure><img src="/files/9664436c68deb9fb6128ba158306e75839caa1c9" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="90.33333333333331">Element</th><th width="181">Title</th><th>Details</th></tr></thead><tbody><tr><td><strong>[A]</strong></td><td>Code editor</td><td>Enter the JavaScript function for the function here</td></tr><tr><td><strong>[B]</strong></td><td>Info</td><td>Here you can see information about the function and the format</td></tr><tr><td><strong>[C]</strong></td><td>Result</td><td>Here the result of the code entered in [A] is displayed</td></tr><tr><td><strong>[D]</strong></td><td>Test code</td><td>Click here to test the code entered in [A]. The result is displayed in [C]</td></tr><tr><td><strong>[E]</strong></td><td>Save</td><td>Click here to save</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.buildings.ability.abb/collection/english-v14/connectivity-as-a-service/connect-devices-with-abb-buildingpro/functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
