ExportIncidentsToCSV
Common Scripts Pack.#
This Script is part of theSupported versions
Supported Cortex XSOAR versions: 6.5.0 and later.
This automation uses the Core REST API Integration to batch export Incidents to CSV and return the resulting CSV file to the war room.
#
Script DataName | Description |
---|---|
Script Type | python3 |
Tags | Utility |
#
DependenciesThis script uses the following commands and scripts.
- core-api-get
- core-api-post
#
InputsArgument Name | Description |
---|---|
query | The query for the Incidents that you want to export. (e.g. status:closed -category:job). You can and should generate the query from the Incidents search screen. |
fetchdays | Number of days you want to fetch back for (default is 7). Needs to be a number. |
columns | Comma separated list of columns (fields) for the CSV. (Default is: id,name,type,severity,status,owner,roles,playbookId,occurred,created,modified,closed) |
#
OutputsThere are no outputs for this script.