I am using Google Scripts. I am attempting to, upon form submission, copy and existing spreadsheet (not the spreadsheet the form submits to) and rename it based upon a cell in the submission.
I assumed that the way to do this is to identify the spreadsheet to be copied by its ID. Here is a bit of the code. Both variables (newUserSS and UUID) define properly.
var newUserSS = "1-bOW_eIKc-dt8pX9YlwpjZTtwjEDYOPxcasSxQ9ndvM";
var UUID = sheet.getSheetValues(newLine,2,1,1);
newUserSS.copy(UUID);