This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GLOBALS | |
//Array of file extension which you would like to extract to Drive | |
var fileTypesToExtract = ['pdf']; | |
//Name of the folder in google drive in which files will be put | |
var folderName = 'New Order pdfs'; | |
//Name of the label which will be applied after processing the mail message | |
var labelName = 'Orderdownloaded'; | |
function GmailToDrive(){ | |
//build query to search emails |