Skip to main content

ExportToCSV

This Script is part of the Common Scripts Pack.#

Supported versions

Available on Cortex XSOAR, Cortex XSIAM, and Cortex XPANSE.

Export given array to csv file

Script Data#


NameDescription
Script Typejavascript
TagsUtility, csv

Inputs#


Argument NameDescription
fileNameoutput filename
csvArrayArray to export
headersArray to hold the file headers in order. Also excepts a comma separated list.
codecUTF-16-BOM to encode Non English characters. Default is: UTF-8

Outputs#


There are no outputs for this script.