---
title: Running Server Scripts
slug: v111/running-server-scripts
icon: {"faIcon":"fa-solid fa-code"}
createdAt: 2025-06-10T06:44:31.749Z
---

You can use this functionality to run any server side script (runs on Servicely servers) of your own choosing. Examples include, not limited to:

1. Test/troubleshoot scripts that are part of a [Trigger](docId\:e8Hufl8CbRvMxhvBHCdDA) or a [Script library](docId\:qVKnA-XZiYICiBAGYyO8U) OR
2. Perform one-off automation such as bulk creating/updating/deleting records OR
3. Querying set of records to validate their output, e.g. output a set of SLAs attributes for Incidents that meet a certain criteria OR
4. Testing/doing ad-hoc runs of outbound integration such as the [Microsoft Intune CMDB Integration](docId\:kY5cnRBnWyVr4zcxZta25) or testing any other outbound integration call (whether custom or out of box)

# Running the script

First, logged on as a user account with Administrator role, you will need to navigate to Administration > Administrator tools > Server script

::Image[]{src="https://api.archbee.com/api/optimize/RDSPJwtKQ5B5sE-oMCN16/69lUpb_nTxBblmxWEzsdO_image.png" size="30" width="973" height="524" position="center" showCaption="false"}

Then, on the “Server script execution” box, you may put in your script, right click and left click on “Execute“ menu, example below:

::Image[]{src="https://api.archbee.com/api/optimize/RDSPJwtKQ5B5sE-oMCN16/nAqUVhR5bJSGcTOSpiu-u_image.png" size="44" width="1381" height="802" position="center" showCaption="false"}

Any output to the log will be shown at the bottom of the “Server script execution” box, example below:

::Image[]{src="https://api.archbee.com/api/optimize/RDSPJwtKQ5B5sE-oMCN16/yNQXzlG5B_moQ-uy1Wng2_image.png" size="38" width="1056" height="1508" position="center" showCaption="false"}

# Other examples

:::hint{type="info"}
Note that you can also do Table queries per the syntax outlined in [Table API (Server)](docId\:Jv5jxVD7j4UkkYs-_MUiN) as well as Date functions in [DateTime API](docId\:g6K-LF0tzPi4HyvWkqoKM) and [Dealing with dates, times and durations](#)

Also, the syntax here is exactly same as in all of our server side scripted logic such as in [Trigger](docId\:e8Hufl8CbRvMxhvBHCdDA) or in [Script library](docId\:qVKnA-XZiYICiBAGYyO8U)
:::

::Image[]{src="https://api.archbee.com/api/optimize/RDSPJwtKQ5B5sE-oMCN16/hjAhzkMZPJgMj8wqIc3nm_image.png" size="46" width="733" height="297" position="center" showCaption="false"}

