2

I have requirement to create csv file from a reports and save this file in the file cabinet folder by Suite Script. Is it possible to do so. can reports be exported into csv file by script.

Aashi
  • 21
  • 3

1 Answers1

0

An example of how to do it:

var csvFile=file.create({ name:'test.csv', contents:'xxxx', folder:folderId, fileType:'CSV' });

csvFile.save();