Created
March 4, 2017 06:11
-
-
Save IranthaJ/73f9432c0439da4456772a88d37609b7 to your computer and use it in GitHub Desktop.
Revisions
-
IranthaJ created this gist
Mar 4, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ function getFolderID(folderName) { var folders = DriveApp.getFolders(); while (folders.hasNext()) { var folder = folders.next(); if(folder.getName() == folderName) { return folder.getId(); } } }