C3 AI Documentation Home

Console Reference: c3CSV

Download a comma-separated values (CSV) file of the argument object.

Parameters

NameTypeMandatoryDescription
dataobjectMandatoryThe object to export as CSV

Examples

Find all smart bulb instances stored in the database, and download it as a CSV file:

JavaScript
c3CSV(SmartBulb.fetch())

Downloads a *.csv file that looks like:

CSV
"id","bulbType","manufacturer","wattage","lumens"
"G4lnkc","LED","GE","12","1100"
"Ro3mFX","CFL","Philips","23","1370"

See also

Was this page helpful?