# Trigger integration execution on demand

## Description

* Given two systems, if you want to execute/trigger all active integration configured between those systems, then you can use this sample script.

## Input

* Instance details
  * Instance details like <code class="expression">space.vars.SITENAME</code> instance url, username and password are to be given in **instanceDetails.properties** file available within script.
* End Point details (To be given at the time of script execution)
  * End Point 1 Id
  * End Point 2 Id

## Output

* List of all active integrations between the two systems that were successfully executed.

## Script

You can download the script from [here](https://opshubtrial-my.sharepoint.com/:u:/g/personal/support_opshub_com/EdaLRfGX_KRAoyYTssd-kswBT1VC_QfpRCwwYMkGhAx7rQ).

Below is an example of execution of script which shows the input and output.

<div align="center"><img src="/files/wAeqkk3QwNZs9xK4maDE" alt="" width="700"></div>


---

# 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://opstech.gitbook.io/opstech-docs/7.223/manage/api/sample-use-cases/use-case-execute-integration.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.
