> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Script Execution Results

Retrieve the results of a script execution action.

<Note>
  External Documentation

  To learn more, visit the [Cortex XDR documentation](https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR-Platform-APIs/Get-Script-Execution-Results).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                                                                                                 |
  | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Action ID | The action ID of the selected request, which is returned when running the *Execute Python Script* action.<br />This can be also found in the Cortex XDR console Response > Action Center > Action ID field. |
</div>

## Example Output

```json theme={"dark"}
{
	"reply": {
		"script_name": "snippet script",
		"script_description": "",
		"script_parameters": [],
		"date_created": "2020-03-29 13:21:59",
		"scope": "win_10and 21 other endpoints",
		"error_message": "",
		"results": [
			{
				"endpoint_name": "<name>",
				"endpoint_ip_address": [
					"<IP address>"
				],
				"endpoint_status": "LOST",
				"domain": "aaaa",
				"endpoint_id": "<endpoint ID>",
				"execution_status": "PENDING",
				"standard_output": null,
				"retrieved_files": 0,
				"failed_files": 0,
				"retention_date": null
			},
			{
				"endpoint_name": "<name>",
				"endpoint_ip_address": [
					"<IP address>"
				],
				"endpoint_status": "LOST",
				"domain": "<domain name>",
				"endpoint_id": "<endpoint ID>",
				"execution_status": "PENDING",
				"standard_output": null,
				"retrieved_files": 0,
				"failed_files": 0,
				"retention_date": null
			},
			{
				"endpoint_name": "<name>",
				"endpoint_ip_address": [
					"<IP address>"
				],
				"endpoint_status": "DISCONNECTED",
				"domain": "WORKGROUP",
				"endpoint_id": "<endpoint ID>",
				"execution_status": "PENDING",
				"standard_output": null,
				"retrieved_files": 0,
				"failed_files": 0,
				"retention_date": null
			}
		]
	}
}
```

## Workflow Library Example

[Get Script Execution Results with Cortex Xdr and Send Results Via Email](https://library.blinkops.com/workflows/get-script-execution-results-with-cortex-xdr-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-script-execution-results-with-cortex-xdr-and-send-results-via-email/canvas" />
</div>
