code: function exportSubmissions(req, res, next) {
    var params = {
      "appId" : req.body.projectId,
      "subid": req.body.subid,
      "formId": req.body.formId,
      "fieldHeader": req.body.fieldHeader,
      "downloadUrl": req.body.fileUrl,
      "filter": req.body.filter,
      "query": req.body.query,
      "wantRestrictions": false
    };
  
    logger.debug("Middleware exportSubmissions ", {req: req, body: req.body, params: params});
  
    forms.exportSubmissions(req.connectionOptions, params, function(err, submissionCsvValues) {
      if (err) {
        logger.error("Middleware Export Submissions ", {error: err});
        return next(err);
      }
  
      logger.debug("Middleware exportSubmissions submissionCsvValues", {submissionCsvValues: submissionCsvValues.length});
  
      _processExportResponse(submissionCsvValues, res, next);
    });
  }
docs: Export Submissions As CSV Files Contained In A Single Zip
  @param req
  @param res
  @param next