I have a master Google Sheet with formulas. The user enters some details and the script then makes a copy of the sheet using the copy method:
var ss = SpreadsheetApp.getActiveSpreadsheet();
var tmpSS = ss.copy(bookID + "-" + title);
When I open the new spreadsheet, there are only values in the cells, the formulas have not been copied over. How do I copy over the formulas as well?