OpenById Error when generate Google Doc from Google Form Submission
问题 I am currently working in a Google Education domain and I would like to automatically generate a Google Doc via an onSubmit trigger from a Google Form. I have a template file that I would like to copy and then replace fields (e.g., {{name}}) with responses from the form. Upon submission, the template Google doc is successfully copied and renamed, but I cannot open the doc to replace the text fields. var templateFile = DriveApp.getFileById(id); var targetFolder = DriveApp.getFolderById(id);