# Creating and attaching scripts

## Introduction <a href="#edytorskryptow-informacjewstepne" id="edytorskryptow-informacjewstepne"></a>

To create a new script or edit an existing one, go to the module **Library** and select the tab **Scripts.** A list of available scripts will be presented. From this view, you can create a new script, view the script version history, create a copy, or edit an existing artifact.

<figure><img src="/files/89c1582a8627b6866426fb3971c48aee98e8e86e" alt=""><figcaption><p><em><strong>Illustration</strong></em> <em><strong>1.</strong> Window with the list of scripts and the context menu of one of the artifacts</em></p></figcaption></figure>

## Script creation <a href="#skrypty-scriptservice-tworzenieskryptu" id="skrypty-scriptservice-tworzenieskryptu"></a>

Script Service is one of the artifact types in the repository. To add a script service, use Eximee Designer and go to the tab **Library → Scripts**, and then click the button on the right **Add script.**

<figure><img src="/files/792a62040ef5743256e0f1640bf4908f7e3fce78" alt=""><figcaption><p><em><strong>Figure 2.</strong> Adding scripts</em></p></figcaption></figure>

## Edit window <a href="#skrypty-scriptservice-oknoedycji" id="skrypty-scriptservice-oknoedycji"></a>

The edit window allows you to change the script content, input and output parameters, and run the script on test data:

<figure><img src="/files/88eda84043093ff3ed9b38b03fec0f9e589d1274" alt=""><figcaption><p><em><strong>Figure 3.</strong> Script service edit window</em></p></figcaption></figure>

## Attaching to an application <a href="#skrypty-scriptservice-podpiecienawniosku" id="skrypty-scriptservice-podpiecienawniosku"></a>

For a specific component in the panel **Properties** panel, select **Interactions → External data source → Select service**, and then select the name of the given script and assign the appropriate components to the input and output parameters.

Scripts can also be attached as input services, output services, and page services.

<figure><img src="/files/c030750bb66d3cec3b6e3ac2e8195dd31eddaca3" alt=""><figcaption><p><em><strong>Figure 4.</strong> Attaching a script to an application</em></p></figcaption></figure>

## Redirecting to the script code <a href="#skrypty-scriptservice-przekierowaniedokoduskryptu" id="skrypty-scriptservice-przekierowaniedokoduskryptu"></a>

After attaching the script, an icon will appear on the right side of the window ![](/files/9eb5296bdab2e7ac323cd1ab4d8cc133e5d89ffa) that allows you to go to the script source code. After clicking the icon, the editor window with the source code of this script will open in the current browser tab. You can also right-click the icon and then choose to open the script source code in a new tab or a new browser window.

<figure><img src="/files/1704b708026874e5394ef85155d153e69a0fdb2f" alt=""><figcaption><p align="center"><em><strong>Figure 5.</strong> Context menu of the icon leading to the script source</em></p></figcaption></figure>


---

# 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.eximee.com/documentation/documentation-en/budowanie-aplikacji/logika-biznesowa/scriptcode/skrypty-scriptservice/tworzenie-i-podpiecie-skryptow.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.
