Grabbing multiple attachments with a specific file name in Google Appscript
问题 needing help with adding 'n' number of attachments. Code below: for(var i = 2; i<=lr; i++) { var Contact_Person = ss.getRange(i,4).getValue(); var PDFs = ss.getRange(i,6).getValue(); //The above i am grabbing the PDF name from a column in my sheet. //This name is used for generating my Mail Merge File. var contents = DriveApp.getFolderById('1ouiQE2cERaRMC_rnSftJCqQCpr2B4x3D').getFiles(); PDFs = DriveApp.getFilesByName(Contractor_Name); if(PDFs.hasNext()) { var attach = []; while(contents