Skip to main content

ExportIncidentsToCSV

This Script is part of the Common Scripts Pack.#

Supported 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 Data#


NameDescription
Script Typepython3
TagsUtility

Dependencies#


This script uses the following commands and scripts.

  • core-api-get
  • core-api-post

Inputs#


Argument NameDescription
queryThe 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.
fetchdaysNumber of days you want to fetch back for (default is 7). Needs to be a number.
columnsComma separated list of columns (fields) for the CSV. (Default is: id,name,type,severity,status,owner,roles,playbookId,occurred,created,modified,closed)

Outputs#


There are no outputs for this script.