# Custom Scripts

Custom scripts are used to perform certain custom actions in Squadcast with the help of Squadcast API's and webhooks.

## See who is on-call in Slack

The purpose of the script is to get the list of people who are on-call for a given Squadcast Schedule across all the shifts, at the time of execution of the script and send it to a slack channel.

Script - <https://github.com/SquadcastHub/who-s-oncall-slack>

Language - Go

## Copy Squadcast entities

This script can be used to copy certain Squadcast entities and their properties within the same or different teams.

Script - <https://github.com/SquadcastHub/squadcast-copy-entities/blob/main/main.py>

Language - Python

## Get Rapid7 InsightsIDR priority and reassign incidnets in Squadcast based on priority

Rapid7 InsightsIDR doesn't send the incident priority while generating the incident and it has to be fetched seperately. This script is added as part of our master webhook connector script which when triggered fetches the priority from Rapid7 InsightIDR updates the incident tags with priority and re-assigns the incidnet to a different escalation policy.

Script - <https://github.com/SquadcastHub/Squadcast-Webhook-Connectors/blob/main/routes/api/rapid7.js>

Language - Javascript (Nodejs)

If you have built any custom scripts, please [let us know](mailto:support@squadcast.com) and we will get it added to this list.


---

# 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://developers.incidents.cloud.solarwinds.com/integration-and-extensibility/scripts-and-automation/custom-scripts.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.
