exportQuestionResponsesToCsv()

Overview

public any function exportQuestionResponsesToCsv(
      required string  questionId       
    , required string  exportFields     
    ,          string  filterExpressions
    ,          string  savedFilters     
    ,          boolean writeToFile       = false
    ,          any     logger           
    ,          any     progress         
)

Exports the responses to the given question to an excel spreadsheet. Returns a workbook object (see Working with spreadsheets).

Arguments

NameTypeRequiredDescription
questionIdstringYesID of the question you wish to produce spreadsheet for
exportFieldsstringYes
filterExpressionsstringNo
savedFiltersstringNo
writeToFilebooleanNo (default=false)Whether or not to write output to file. If true, output is written to file and the file path is returned. If false, workbook object is returned.
loggeranyNoLogger for background task export logging
progressanyNoProgress reporter object for background task progress reporting