I'm able to create a copy of the template and rename it. But I can't get the data from my spreadsheet to populate the new Doc. Error message:
TypeError: Cannot find function getBody in object File.
I'm assuming that the copy function does not open the document, and I need to open it before I can access the body, but I don't know how to open the document since I'm creating it and don't know it's ID yet.
var file = DocsList.find("Primary Conducting Sheet TEMPLATE")[0];
var copy = file.makeCopy("Primary Conducting Sheet for Upcoming Sunday");
var body = copy.getBody();
body.replaceText('{date}', sheet.getRange('B2').getValues());
Thanks in advance!