Google Apps Script Duplicate A File

Viewed 13339

I am simply trying to duplicate an open sheets file. I tried so many variation without success. The below is an example. Would value any assistance. Thank You.

function copyDocs() {
    var file = DriveApp.getFilesByName('My Income Statement');
    file.makeCopy();
}
1 Answers
Related