exportResponsesToExcel()

Overview

public any function exportResponsesToExcel(
      required string  formId     
    ,          boolean writeToFile = false
    ,          any     logger     
    ,          any     progress   
)

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

Arguments

NameTypeRequiredDescription
formIdstringYesID of the form you wish to produce spreadsheet for
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