[How to insert picture to google docs using the url link coming from google form response spreadsheet]
I need help, I have a google form that allow the user to upload their photo. My problem is, I have to link the google docs report to the url photo under the column [11] of the response spreadsheet.
here is my code
var Photo = e.values[11];
var templateFile = DriveApp.getFileById("link-of-docReport");
var templateResponseFolder = DriveApp.getFolderById("this-is-the-path-for-uploaded-photo");
var copy = templateFile.makeCopy(LastName + ", " + FirstName, templateResponseFolder);
var doc = DocumentApp.openById(copy.getId());
var body = doc.getBody();
body.replaceText("Photo", Photo);